Browse Source

AP_ADSB: move variable into struct like the rest

master
Tom Pittenger 9 years ago
parent
commit
89271c29ab
  1. 2
      libraries/AP_ADSB/AP_ADSB.cpp
  2. 2
      libraries/AP_ADSB/AP_ADSB.h

2
libraries/AP_ADSB/AP_ADSB.cpp

@ -547,7 +547,7 @@ void AP_ADSB::send_dynamic_out(const mavlink_channel_t chan) @@ -547,7 +547,7 @@ void AP_ADSB::send_dynamic_out(const mavlink_channel_t chan)
}
uint16_t state = 0;
if (_is_in_auto_mode) {
if (out_state._is_in_auto_mode) {
state |= UAVIONIX_ADSB_OUT_DYNAMIC_STATE_AUTOPILOT_ENABLED;
}
if (!out_state.is_flying) {

2
libraries/AP_ADSB/AP_ADSB.h

@ -134,7 +134,6 @@ private: @@ -134,7 +134,6 @@ private:
Location_Class _my_loc;
bool _is_in_auto_mode;
// ADSB-IN state. Maintains list of external vehicles
struct {
@ -159,6 +158,7 @@ private: @@ -159,6 +158,7 @@ private:
uint32_t chan_last_ms;
UAVIONIX_ADSB_RF_HEALTH status; // transceiver status
bool is_flying;
bool _is_in_auto_mode;
// ADSB-OUT configuration
struct {

Loading…
Cancel
Save