mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-24 00:35:26 +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:
parent
31cd2de3d3
commit
d183f19369
1 changed files with 15 additions and 2 deletions
|
@ -12,7 +12,15 @@ TABS.motors.initialize = function (callback) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function get_arm_status() {
|
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() {
|
function update_arm_status() {
|
||||||
|
@ -341,7 +349,12 @@ TABS.motors.initialize = function (callback) {
|
||||||
$('div.sliders input').prop('disabled', true);
|
$('div.sliders input').prop('disabled', true);
|
||||||
|
|
||||||
// change all values to default
|
// 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
|
// trigger change event so values are sent to mcu
|
||||||
$('div.sliders input').trigger('input');
|
$('div.sliders input').trigger('input');
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue