Refactor set_publish() logic so that a default false value is not (re)set each loop in simulator_mapvlink.cpp and provide a default argument to set_publish() in simulator.h.

This commit is contained in:
mcsauder
2019-03-05 09:16:31 +01:00
committed by Beat Küng
parent 6e0fc150c0
commit 0bd5d6caff
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -344,7 +344,7 @@ private:
void send_controls();
void send_heartbeat();
void send_mavlink_message(const mavlink_message_t &aMsg);
void set_publish(const bool publish);
void set_publish(const bool publish = false);
void update_sensors(mavlink_hil_sensor_t *imu);
void update_gps(mavlink_hil_gps_t *gps_sim);