Skip to content

Commit

Permalink
AP_Compass: remove code when features not available
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbarker committed Aug 7, 2024
1 parent 4b68b68 commit 7a53386
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libraries/AP_Compass/AP_Compass.h
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,10 @@ friend class AP_Compass_Backend;
*/
MAV_RESULT handle_mag_cal_command(const mavlink_command_int_t &packet);

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

// check if the compasses are pointing in the same direction
Expand Down Expand Up @@ -403,8 +405,10 @@ friend class AP_Compass_Backend;
bool _start_calibration(uint8_t i, bool retry=false, float delay_sec=0.0f);
bool _start_calibration_mask(uint8_t mask, bool retry=false, bool autosave=false, float delay_sec=0.0f, bool autoreboot=false);
bool _auto_reboot() const { return _compass_cal_autoreboot; }
#if HAL_MAVLINK_BINDINGS_ENABLED && COMPASS_CAL_ENABLED
Priority next_cal_progress_idx[MAVLINK_COMM_NUM_BUFFERS];
Priority next_cal_report_idx[MAVLINK_COMM_NUM_BUFFERS];
#endif

// see if we already have probed a i2c driver by bus number and address
bool _have_i2c_driver(uint8_t bus_num, uint8_t address) const;
Expand Down

0 comments on commit 7a53386

Please sign in to comment.