AP_ADSB: Add missing const in member functions

Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
This commit is contained in:
Patrick José Pereira 2021-02-01 13:26:26 -03:00 committed by Andrew Tridgell
parent f9732b6c70
commit 7e01935893
1 changed files with 1 additions and 1 deletions

View File

@ -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_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; } 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 // extract a location out of a vehicle item
Location get_location(const adsb_vehicle_t &vehicle) const; Location get_location(const adsb_vehicle_t &vehicle) const;