mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-26 04:33:34 +08:00
always publish flow (no low-level sensor interface implemented yet)
This commit is contained in:
@@ -232,9 +232,7 @@ void Simulator::handle_message(mavlink_message_t *msg, bool publish) {
|
|||||||
case MAVLINK_MSG_ID_HIL_OPTICAL_FLOW:
|
case MAVLINK_MSG_ID_HIL_OPTICAL_FLOW:
|
||||||
mavlink_hil_optical_flow_t flow;
|
mavlink_hil_optical_flow_t flow;
|
||||||
mavlink_msg_hil_optical_flow_decode(msg, &flow);
|
mavlink_msg_hil_optical_flow_decode(msg, &flow);
|
||||||
if (publish) {
|
publish_flow_topic(&flow);
|
||||||
publish_flow_topic(&flow);
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case MAVLINK_MSG_ID_HIL_GPS:
|
case MAVLINK_MSG_ID_HIL_GPS:
|
||||||
|
|||||||
Reference in New Issue
Block a user