AP_Compass: constify get_orientation

This commit is contained in:
Randy Mackay 2019-11-15 13:02:05 +09:00 committed by Andrew Tridgell
parent 47fe57bd8d
commit cf34abba87
1 changed files with 2 additions and 2 deletions

View File

@ -46,8 +46,8 @@ public:
void set_tolerance(float tolerance) { _tolerance = tolerance; } void set_tolerance(float tolerance) { _tolerance = tolerance; }
void get_calibration(Vector3f &offsets, Vector3f &diagonals, Vector3f &offdiagonals); void get_calibration(Vector3f &offsets, Vector3f &diagonals, Vector3f &offdiagonals);
enum Rotation get_orientation(void) { return _orientation; } enum Rotation get_orientation() const { return _orientation; }
enum Rotation get_original_orientation(void) { return _orig_orientation; } enum Rotation get_original_orientation() const { return _orig_orientation; }
float get_completion_percent() const; float get_completion_percent() const;
completion_mask_t& get_completion_mask(); completion_mask_t& get_completion_mask();