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