AC_AttitudeControl: added set_throttle_mix_value()

used by quadplane
This commit is contained in:
Andrew Tridgell 2017-01-29 10:40:34 +11:00
parent c061d5615b
commit e5ed20d6f7
2 changed files with 2 additions and 0 deletions

View File

@ -246,6 +246,7 @@ public:
virtual void set_throttle_mix_min() {}
virtual void set_throttle_mix_man() {}
virtual void set_throttle_mix_max() {}
virtual void set_throttle_mix_value(float value) {}
// enable use of flybass passthrough on heli
virtual void use_flybar_passthrough(bool passthrough, bool tail_passthrough) {}

View File

@ -66,6 +66,7 @@ public:
void set_throttle_mix_min() override { _throttle_rpy_mix_desired = _thr_mix_min; }
void set_throttle_mix_man() override { _throttle_rpy_mix_desired = _thr_mix_man; }
void set_throttle_mix_max() override { _throttle_rpy_mix_desired = _thr_mix_max; }
void set_throttle_mix_value(float value) override { _throttle_rpy_mix_desired = value; }
// are we producing min throttle?
bool is_throttle_mix_min() const override { return (_throttle_rpy_mix < 1.25f*_thr_mix_min); }