mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
AP_Compass: Add accessor function for COMPASS_AUTODEC
This commit is contained in:
parent
b1977ca43d
commit
8e9dc1c393
@ -216,6 +216,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;
|
||||
|
Loading…
Reference in New Issue
Block a user