mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 14:38:30 -04:00
AP_Motors: Add missing const in member functions
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
This commit is contained in:
parent
266ed9541b
commit
bdc14c60fb
@ -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; }
|
||||
|
@ -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(); }
|
||||
|
Loading…
Reference in New Issue
Block a user