From bdc14c60fbbc4d7ba621ad44d8dbfe905273c161 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20Jos=C3=A9=20Pereira?= Date: Mon, 1 Feb 2021 13:26:31 -0300 Subject: [PATCH] AP_Motors: Add missing const in member functions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Patrick José Pereira --- libraries/AP_Motors/AP_MotorsHeli_RSC.h | 2 +- libraries/AP_Motors/AP_MotorsMulticopter.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/AP_Motors/AP_MotorsHeli_RSC.h b/libraries/AP_Motors/AP_MotorsHeli_RSC.h index df90dbe38f..ca0635d138 100644 --- a/libraries/AP_Motors/AP_MotorsHeli_RSC.h +++ b/libraries/AP_Motors/AP_MotorsHeli_RSC.h @@ -187,7 +187,7 @@ private: // parameter accessors to allow conversions float get_critical_speed() const { return _critical_speed * 0.01; } - float get_idle_output() { return _idle_output * 0.01; } + float get_idle_output() const { return _idle_output * 0.01; } float get_governor_disengage() { return _governor_disengage * 0.01; } float get_governor_droop_response() { return _governor_droop_response * 0.01; } float get_governor_tcgain() { return _governor_tcgain * 0.01; } diff --git a/libraries/AP_Motors/AP_MotorsMulticopter.h b/libraries/AP_Motors/AP_MotorsMulticopter.h index 59c4402b5e..6da792add2 100644 --- a/libraries/AP_Motors/AP_MotorsMulticopter.h +++ b/libraries/AP_Motors/AP_MotorsMulticopter.h @@ -57,7 +57,7 @@ public: void set_throttle_passthrough_for_esc_calibration(float throttle_input); // get_lift_max - get maximum lift ratio - for logging purposes only - float get_lift_max() { return _lift_max; } + float get_lift_max() const { return _lift_max; } // get_batt_voltage_filt - get battery voltage ratio - for logging purposes only float get_batt_voltage_filt() const { return _batt_voltage_filt.get(); }