Skip to content

Commit

Permalink
AP_Compass: avoid use of MAV_RESULT if mavlink bindings not used
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbarker committed Aug 7, 2024
1 parent 52a2de8 commit 4b68b68
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libraries/AP_Compass/AP_Compass.h
Original file line number Diff line number Diff line change
Expand Up @@ -190,13 +190,15 @@ friend class AP_Compass_Backend;
// indicate which bit in LOG_BITMASK indicates we should log compass readings
void set_log_bit(uint32_t log_bit) { _log_bit = log_bit; }

#if HAL_MAVLINK_BINDINGS_ENABLED
/*
handle an incoming MAG_CAL command
*/
MAV_RESULT handle_mag_cal_command(const mavlink_command_int_t &packet);

bool send_mag_cal_progress(const class GCS_MAVLINK& link);
bool send_mag_cal_report(const class GCS_MAVLINK& link);
#endif

// check if the compasses are pointing in the same direction
bool consistent() const;
Expand Down

0 comments on commit 4b68b68

Please sign in to comment.