pub struct MISSION_CHECKSUM_DATA {
pub checksum: u32,
pub mission_type: MavMissionType,
}
development
only.Expand description
id: 53 Checksum for the current mission, rally point or geofence plan, or for the “combined” plan (a GCS can use these checksums to determine if it has matching plans). This message must be broadcast with the appropriate checksum following any change to a mission, geofence or rally point definition (immediately after the MISSION_ACK that completes the upload sequence). It may also be requested using MAV_CMD_REQUEST_MESSAGE, where param 2 indicates the plan type for which the checksum is required. The checksum must be calculated on the autopilot, but may also be calculated by the GCS. The checksum uses the same CRC32 algorithm as MAVLink FTP (https://mavlink.io/en/services/ftp.html#crc32-implementation). The checksum for a mission, geofence or rally point definition is run over each item in the plan in seq order (excluding the home location if present in the plan), and covers the following fields (in order): frame, command, autocontinue, param1, param2, param3, param4, param5, param6, param7. The checksum for the whole plan (MAV_MISSION_TYPE_ALL) is calculated using the same approach, running over each sub-plan in the following order: mission, geofence then rally point..
Fields§
§checksum: u32
CRC32 checksum of current plan for specified type..
mission_type: MavMissionType
Mission type..
Implementations§
Source§impl MISSION_CHECKSUM_DATA
impl MISSION_CHECKSUM_DATA
pub const ENCODED_LEN: usize = 5usize
pub const DEFAULT: Self
Trait Implementations§
Source§impl Clone for MISSION_CHECKSUM_DATA
impl Clone for MISSION_CHECKSUM_DATA
Source§fn clone(&self) -> MISSION_CHECKSUM_DATA
fn clone(&self) -> MISSION_CHECKSUM_DATA
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more