vtol: refactor of maximum pwm value settings for main and alternate motors

- main motors are the ones which are meant to be used as propulsion in fw mode
- alternate motors are the ones usually meant to be switched off in fw mode

Signed-off-by: RomanBapst <bapstroman@gmail.com>
This commit is contained in:
RomanBapst
2021-01-04 15:32:00 +01:00
committed by Silvan Fuhrer
parent bc1e9f72f7
commit 0871f0f52d
5 changed files with 91 additions and 60 deletions
+1 -4
View File
@@ -305,10 +305,7 @@ void Standard::update_transition_state()
}
// in back transition we need to start the MC motors again
if (_motor_state != motor_state::ENABLED) {
_motor_state = set_motor_state(_motor_state, motor_state::ENABLED);
}
set_all_motor_state(motor_state::ENABLED);
// set idle speed for MC actuators
if (!_flag_idle_mc) {