mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-06-24 19:00:36 +08:00
Add message handlers for onboard computer status
This commit is contained in:
committed by
Nuno Marques
parent
0326a8ec76
commit
a3bd9ead4c
@@ -245,6 +245,10 @@ MavlinkReceiver::handle_message(mavlink_message_t *msg)
|
||||
handle_message_debug_float_array(msg);
|
||||
break;
|
||||
|
||||
case MAVLINK_MSG_ID_ONBOARD_COMPUTER_STATUS:
|
||||
handle_message_onboard_computer_status(msg);
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
@@ -2535,6 +2539,14 @@ MavlinkReceiver::handle_message_debug_float_array(mavlink_message_t *msg)
|
||||
_debug_array_pub.publish(debug_topic);
|
||||
}
|
||||
|
||||
void
|
||||
MavlinkReceiver::handle_message_onboard_computer_status(mavlink_message_t *msg)
|
||||
{
|
||||
mavlink_onboard_computer_status_t status_msg;
|
||||
mavlink_msg_onboard_computer_status_decode(msg, &status_msg);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Receive data from UART/UDP
|
||||
*/
|
||||
|
||||
@@ -165,6 +165,7 @@ private:
|
||||
void handle_message_trajectory_representation_waypoints(mavlink_message_t *msg);
|
||||
void handle_message_utm_global_position(mavlink_message_t *msg);
|
||||
void handle_message_vision_position_estimate(mavlink_message_t *msg);
|
||||
void handle_message_onboard_computer_status(mavlink_message_t *msg);
|
||||
|
||||
|
||||
void Run();
|
||||
|
||||
Reference in New Issue
Block a user