AP_Compass: Add accessor function for COMPASS_AUTODEC

This commit is contained in:
Paul Riseborough 2020-04-26 08:10:38 +10:00 committed by Randy Mackay
parent e87e16cc0f
commit db90cf5fb0
1 changed files with 2 additions and 0 deletions

View File

@ -202,6 +202,8 @@ public:
void set_declination(float radians, bool save_to_eeprom = true);
float get_declination() const;
bool auto_declination_enabled() const { return _auto_declination != 0; }
// set overall board orientation
void set_board_orientation(enum Rotation orientation, Matrix3f* custom_rotation = nullptr) {
_board_orientation = orientation;