From cf34abba8780faa27d87f9679d21e17b553dd19b Mon Sep 17 00:00:00 2001 From: Randy Mackay Date: Fri, 15 Nov 2019 13:02:05 +0900 Subject: [PATCH] AP_Compass: constify get_orientation --- libraries/AP_Compass/CompassCalibrator.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/AP_Compass/CompassCalibrator.h b/libraries/AP_Compass/CompassCalibrator.h index dadf00d564..233ecbed74 100644 --- a/libraries/AP_Compass/CompassCalibrator.h +++ b/libraries/AP_Compass/CompassCalibrator.h @@ -46,8 +46,8 @@ public: void set_tolerance(float tolerance) { _tolerance = tolerance; } void get_calibration(Vector3f &offsets, Vector3f &diagonals, Vector3f &offdiagonals); - enum Rotation get_orientation(void) { return _orientation; } - enum Rotation get_original_orientation(void) { return _orig_orientation; } + enum Rotation get_orientation() const { return _orientation; } + enum Rotation get_original_orientation() const { return _orig_orientation; } float get_completion_percent() const; completion_mask_t& get_completion_mask();