mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-13 00:40:35 +08:00
Cut case MAVLINK_MSG_ID_ODOMETRY content and paste into handle_message_odometry() method.
This commit is contained in:
@@ -301,6 +301,9 @@ void Simulator::handle_message(mavlink_message_t *msg)
|
||||
break;
|
||||
|
||||
case MAVLINK_MSG_ID_ODOMETRY:
|
||||
handle_message_odometry(msg);
|
||||
break;
|
||||
|
||||
case MAVLINK_MSG_ID_VISION_POSITION_ESTIMATE:
|
||||
handle_message_vision_position_estimate(msg);
|
||||
break;
|
||||
@@ -522,6 +525,11 @@ void Simulator::handle_message_landing_target(const mavlink_message_t *msg)
|
||||
orb_publish_auto(ORB_ID(irlock_report), &_irlock_report_pub, &report, &irlock_multi, ORB_PRIO_HIGH);
|
||||
}
|
||||
|
||||
void Simulator::handle_message_odometry(const mavlink_message_t *msg)
|
||||
{
|
||||
publish_odometry_topic(msg);
|
||||
}
|
||||
|
||||
void Simulator::handle_message_optical_flow(const mavlink_message_t *msg)
|
||||
{
|
||||
mavlink_hil_optical_flow_t flow;
|
||||
|
||||
Reference in New Issue
Block a user