MotorsMulti: add throttle_max accessor

This commit is contained in:
Randy Mackay 2015-07-28 14:11:56 +09:00
parent b58cc7ea8d
commit 1024790633
1 changed files with 1 additions and 0 deletions

View File

@ -62,6 +62,7 @@ public:
// returns warning throttle // returns warning throttle
float get_throttle_warn() const { return rel_pwm_to_thr_range(_spin_when_armed); } float get_throttle_warn() const { return rel_pwm_to_thr_range(_spin_when_armed); }
int16_t throttle_max() const { return _max_throttle; }
int16_t throttle_min() const { return rel_pwm_to_thr_range(_min_throttle); } int16_t throttle_min() const { return rel_pwm_to_thr_range(_min_throttle); }
// set_throttle_range - sets the minimum throttle that will be sent to the engines when they're not off (i.e. to prevents issues with some motors spinning and some not at very low throttle) // set_throttle_range - sets the minimum throttle that will be sent to the engines when they're not off (i.e. to prevents issues with some motors spinning and some not at very low throttle)