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