mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-26 18:48:30 -04:00
Sub: clear roll/pitch trim when setting neutral controls
This commit is contained in:
parent
0351874c01
commit
f5648a8259
@ -600,6 +600,10 @@ void Sub::set_neutral_controls()
|
|||||||
}
|
}
|
||||||
|
|
||||||
hal.rcin->set_overrides(channels, 10);
|
hal.rcin->set_overrides(channels, 10);
|
||||||
|
|
||||||
|
// Clear pitch/roll trim settings
|
||||||
|
pitchTrim = 0;
|
||||||
|
rollTrim = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Sub::clear_input_hold()
|
void Sub::clear_input_hold()
|
||||||
|
Loading…
Reference in New Issue
Block a user