diff --git a/libraries/AP_ADSB/AP_ADSB.h b/libraries/AP_ADSB/AP_ADSB.h index ddacc0d76b..11353f08fb 100644 --- a/libraries/AP_ADSB/AP_ADSB.h +++ b/libraries/AP_ADSB/AP_ADSB.h @@ -97,7 +97,7 @@ public: void set_is_auto_mode(const bool is_in_auto_mode) { out_state.is_in_auto_mode = is_in_auto_mode; } void set_is_flying(const bool is_flying) { out_state.is_flying = is_flying; } - UAVIONIX_ADSB_RF_HEALTH get_transceiver_status(void) { return out_state.status; } + UAVIONIX_ADSB_RF_HEALTH get_transceiver_status(void) const { return out_state.status; } // extract a location out of a vehicle item Location get_location(const adsb_vehicle_t &vehicle) const;