From 17d7f1fbe5e427e068809b55fcc37a4db7152b6c Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 19 Apr 2013 17:47:44 +1000 Subject: [PATCH] AP_InertialSensor: make some interfaces const --- libraries/AP_InertialSensor/AP_InertialSensor.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/AP_InertialSensor/AP_InertialSensor.h b/libraries/AP_InertialSensor/AP_InertialSensor.h index b6d6caaf1d..163d31e535 100644 --- a/libraries/AP_InertialSensor/AP_InertialSensor.h +++ b/libraries/AP_InertialSensor/AP_InertialSensor.h @@ -79,7 +79,7 @@ public: /// /// @returns vector of rotational rates in radians/sec /// - Vector3f get_gyro(void) { return _gyro; } + Vector3f get_gyro(void) const { return _gyro; } void set_gyro(Vector3f gyro) { _gyro = gyro; } // set gyro offsets in radians/sec @@ -90,7 +90,7 @@ public: /// /// @returns vector of current accelerations in m/s/s /// - Vector3f get_accel(void) { return _accel; } + Vector3f get_accel(void) const { return _accel; } void set_accel(Vector3f accel) { _accel = accel; } // get accel offsets in m/s/s