* New translations index.md (Korean) * New translations payload.md (Korean) * New translations traffic_management.md (Korean) * New translations define_xml_element.md (Korean) * New translations mavlink_version.md (Korean) * New translations index.md (Korean) * New translations faq.md (Korean) * New translations contributing.md (Korean) * New translations generate_libraries.md (Korean) * New translations installation.md (Korean) * New translations mavlink_2.md (Korean) * New translations message_signing.md (Korean) * New translations packet_loss.md (Korean) * New translations serialization.md (Korean) * New translations wireshark.md (Korean) * New translations xml_schema.md (Korean) * New translations crc.md (Korean) * New translations index.md (Korean) * New translations howto_requestmessages.md (Korean) * New translations mission.md (Korean) * New translations offboard_control.md (Korean) * New translations parameter.md (Korean) * New translations timesync.md (Korean) * New translations arm_authorization.md (Korean) * New translations battery.md (Korean) * New translations camera_v1.md (Korean) * New translations command.md (Korean) * New translations events.md (Korean) * New translations gimbal_v2.md (Korean) * New translations component_metadata.md (Korean) * New translations index.md (Chinese Simplified) * New translations payload.md (Chinese Simplified) * New translations traffic_management.md (Chinese Simplified) * New translations define_xml_element.md (Chinese Simplified) * New translations mavlink_version.md (Chinese Simplified) * New translations index.md (Chinese Simplified) * New translations faq.md (Chinese Simplified) * New translations contributing.md (Chinese Simplified) * New translations generate_libraries.md (Chinese Simplified) * New translations installation.md (Chinese Simplified) * New translations mavlink_2.md (Chinese Simplified) * New translations message_signing.md (Chinese Simplified) * New translations packet_loss.md (Chinese Simplified) * New translations serialization.md (Chinese Simplified) * New translations wireshark.md (Chinese Simplified) * New translations xml_schema.md (Chinese Simplified) * New translations crc.md (Chinese Simplified) * New translations index.md (Chinese Simplified) * New translations howto_requestmessages.md (Chinese Simplified) * New translations mission.md (Chinese Simplified) * New translations offboard_control.md (Chinese Simplified) * New translations parameter.md (Chinese Simplified) * New translations timesync.md (Chinese Simplified) * New translations arm_authorization.md (Chinese Simplified) * New translations battery.md (Chinese Simplified) * New translations camera_v1.md (Chinese Simplified) * New translations command.md (Chinese Simplified) * New translations events.md (Chinese Simplified) * New translations gimbal_v2.md (Chinese Simplified) * New translations component_metadata.md (Chinese Simplified) * New translations common.md (Korean) * New translations common.md (Chinese Simplified)
1.4 KiB
Packet Loss Calculation
MAVLink packet loss is calculated from the packet sequence number, an 8 bit field that is incremented each time a message is emitted on a channel. The recipient of the message can track the last received/next expected sequence number, and if a packet sequence number is bigger than expected, any intermediate packets between the sequence numbers are assumed to have been lost. The sequence number will wrap around at 255, and the recipient is expected to compensate for this.
This approach works if all messages sent on a channel are routed to the system calculating packet loss, and if messages from only one channel are received by the system calculating packet loss. This is true in simple setups, in particular those where a GCS and autopilot communicate over a single telemetry radio.
It may not work in more complicated setups:
- Companion computer setups may use routers to redirect some packets from the autopilot to specific components, and don't necessarily forward all of them to the ground station that is calculating packet loss. The packets that don't reach the ground station will be detected as packet loss, even though they were received by the router.
- Setups with redundant links may merge the channels before passing to a GCS. The sequence numbers from the messages sent on different channels will not match, and any differences are detected as packet loss.