mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-25 01:05:15 +03:00
Adapted the check for running motors in the motor control for 3D.
This commit is contained in:
parent
d183f19369
commit
09100c8eba
1 changed files with 11 additions and 4 deletions
|
@ -365,10 +365,17 @@ TABS.motors.initialize = function (callback) {
|
|||
var motors_running = false;
|
||||
|
||||
for (var i = 0; i < MOTOR_DATA.length; i++) {
|
||||
if (MOTOR_DATA[i] > MISC.mincommand) {
|
||||
motors_running = true;
|
||||
break;
|
||||
}
|
||||
if( ! bit_check(BF_CONFIG.features,12) ){
|
||||
if (MOTOR_DATA[i] > MISC.mincommand) {
|
||||
motors_running = true;
|
||||
break;
|
||||
}
|
||||
}else{
|
||||
if( (MOTOR_DATA[i] < _3D.deadband3d_low) || (MOTOR_DATA[i] > _3D.deadband3d_high) ){
|
||||
motors_running = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (motors_running) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue