mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-24 17:48:35 -04:00
ArduPlane: Fix throttle nudge reset due to wrong radio timing
This commit is contained in:
parent
f7daa4a93a
commit
9b4441011c
@ -186,8 +186,6 @@ void Plane::read_radio()
|
|||||||
{
|
{
|
||||||
if (!rc().read_input()) {
|
if (!rc().read_input()) {
|
||||||
control_failsafe();
|
control_failsafe();
|
||||||
airspeed_nudge_cm = 0;
|
|
||||||
throttle_nudge = 0;
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -269,6 +267,9 @@ void Plane::control_failsafe()
|
|||||||
channel_pitch->set_control_in(0);
|
channel_pitch->set_control_in(0);
|
||||||
channel_rudder->set_control_in(0);
|
channel_rudder->set_control_in(0);
|
||||||
|
|
||||||
|
airspeed_nudge_cm = 0;
|
||||||
|
throttle_nudge = 0;
|
||||||
|
|
||||||
switch (control_mode->mode_number()) {
|
switch (control_mode->mode_number()) {
|
||||||
case Mode::Number::QSTABILIZE:
|
case Mode::Number::QSTABILIZE:
|
||||||
case Mode::Number::QHOVER:
|
case Mode::Number::QHOVER:
|
||||||
|
Loading…
Reference in New Issue
Block a user