1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-23 08:15:22 +03:00

In case you deactivate the motor-control it checks now if 3D is activated and resets the throttle to the proper neutral value.

This commit is contained in:
NightHawk32 2015-11-12 16:00:07 -05:00
parent 31cd2de3d3
commit d183f19369

View file

@ -12,7 +12,15 @@ TABS.motors.initialize = function (callback) {
}
function get_arm_status() {
MSP.send_message(MSP_codes.MSP_STATUS, false, false, get_motor_data);
MSP.send_message(MSP_codes.MSP_STATUS, false, false, load_config);
}
function load_config() {
MSP.send_message(MSP_codes.MSP_BF_CONFIG, false, false, load_3d);
}
function load_3d() {
MSP.send_message(MSP_codes.MSP_3D, false, false, get_motor_data);
}
function update_arm_status() {
@ -341,7 +349,12 @@ TABS.motors.initialize = function (callback) {
$('div.sliders input').prop('disabled', true);
// change all values to default
$('div.sliders input').val(MISC.mincommand);
if (! bit_check(BF_CONFIG.features,12)) {
$('div.sliders input').val(MISC.mincommand);
} else {
$('div.sliders input').val(_3D.neutral3d);
}
// trigger change event so values are sent to mcu
$('div.sliders input').trigger('input');