PX4-Autopilot/msg/telemetry_status.msg
Daniel Agar e389d6ffbb commander: cleanup mavlink system present and validity checks
- try to handle mavlink system validity and present checks more consistently
 - telemetry_status unify heartbeats and healthy flags across MAV_TYPE and MAV_COMPONENT (once it's outside of mavlink we don't care about the difference)
 - add gimbal
2021-12-22 09:38:43 +01:00

75 lines
2.6 KiB
Plaintext

uint8 LINK_TYPE_GENERIC = 0
uint8 LINK_TYPE_UBIQUITY_BULLET = 1
uint8 LINK_TYPE_WIRE = 2
uint8 LINK_TYPE_USB = 3
uint8 LINK_TYPE_IRIDIUM = 4
uint64 timestamp # time since system start (microseconds)
uint8 type # type of the radio hardware (LINK_TYPE_*)
uint8 mode
bool flow_control
bool forwarding
bool mavlink_v2
bool ftp
uint8 streams
float32 data_rate # configured maximum data rate (Bytes/s)
float32 rate_multiplier
float32 tx_rate_avg # transmit rate average (Bytes/s)
float32 tx_error_rate_avg # transmit error rate average (Bytes/s)
uint32 tx_message_count # total message sent count
uint32 tx_buffer_overruns # number of TX buffer overruns
float32 rx_rate_avg # transmit rate average (Bytes/s)
uint32 rx_message_count # count of total messages received
uint32 rx_message_lost_count
uint32 rx_buffer_overruns # number of RX buffer overruns
uint32 rx_parse_errors # number of parse errors
uint32 rx_packet_drop_count # number of packet drops
float32 rx_message_lost_rate
uint64 HEARTBEAT_TIMEOUT_US = 1500000 # Heartbeat timeout 1.5 seconds
# Heartbeats
bool heartbeat_adsb # MAV_TYPE_ADSB
bool heartbeat_antenna_tracker # MAV_TYPE_ANTENNA_TRACKER
bool heartbeat_battery # MAV_TYPE_BATTERY
bool heartbeat_camera # MAV_TYPE_CAMERA
bool heartbeat_gcs # MAV_TYPE_GCS
bool heartbeat_gimbal # MAV_TYPE_GIMBAL
bool heartbeat_log # MAV_COMP_ID_LOG
bool heartbeat_obstacle_avoidance # MAV_COMP_ID_OBSTACLE_AVOIDANCE
bool heartbeat_onboard_controller # MAV_TYPE_ONBOARD_CONTROLLER
bool heartbeat_osd # MAV_COMP_ID_OSD
bool heartbeat_pairing_manager # MAV_COMP_ID_PAIRING_MANAGER
bool heartbeat_parachute # MAV_TYPE_PARACHUTE
bool heartbeat_telemetry_radio # MAV_COMP_ID_TELEMETRY_RADIO
bool heartbeat_uart_bridge # MAV_COMP_ID_UART_BRIDGE
bool heartbeat_udp_bridge # MAV_COMP_ID_UDP_BRIDGE
bool heartbeat_vio # MAV_COMP_ID_VISUAL_INERTIAL_ODOMETRY
# system status healthy
bool system_healthy_adsb
bool system_healthy_antenna_tracker
bool system_healthy_battery
bool system_healthy_camera
bool system_healthy_gcs
bool system_healthy_gimbal
bool system_healthy_log
bool system_healthy_obstacle_avoidance
bool system_healthy_onboard_controller
bool system_healthy_osd
bool system_healthy_pairing_manager
bool system_healthy_parachute
bool system_healthy_telemetry_radio
bool system_healthy_uart_bridge
bool system_healthy_udp_bridge
bool system_healthy_vio