Browse Source

always publish flow (no low-level sensor interface implemented yet)

sbg
v01d 10 years ago committed by Lorenz Meier
parent
commit
2a1d838851
  1. 4
      src/modules/simulator/simulator_mavlink.cpp

4
src/modules/simulator/simulator_mavlink.cpp

@ -232,9 +232,7 @@ void Simulator::handle_message(mavlink_message_t *msg, bool publish) { @@ -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…
Cancel
Save