AP_Motors: Add missing const in member functions

Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
This commit is contained in:
Patrick José Pereira 2021-02-01 13:26:31 -03:00 committed by Andrew Tridgell
parent 266ed9541b
commit bdc14c60fb
2 changed files with 2 additions and 2 deletions

View File

@ -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; }

View File

@ -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(); }