mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-02 14:08:45 -04:00
AC_AttitudeControl: added set_throttle_mix_value()
used by quadplane
This commit is contained in:
parent
c061d5615b
commit
e5ed20d6f7
@ -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) {}
|
||||
|
@ -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); }
|
||||
|
Loading…
Reference in New Issue
Block a user