mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-19 14:25:14 +03:00
Hide Motor PWM Speed Separated from PID Speed when DSHOT selected
This commit is contained in:
parent
bd757f49af
commit
ce4ed0b544
1 changed files with 3 additions and 0 deletions
|
@ -309,16 +309,19 @@ TABS.configuration.initialize = function (callback, scrollPosition) {
|
||||||
esc_protocol_e.val(PID_ADVANCED_CONFIG.fast_pwm_protocol + 1);
|
esc_protocol_e.val(PID_ADVANCED_CONFIG.fast_pwm_protocol + 1);
|
||||||
|
|
||||||
esc_protocol_e.change(function () {
|
esc_protocol_e.change(function () {
|
||||||
|
//hide not used setting for DSHOT protocol
|
||||||
if ($(this).val() - 1 >= self.DSHOT_PROTOCOL_MIN_VALUE) {
|
if ($(this).val() - 1 >= self.DSHOT_PROTOCOL_MIN_VALUE) {
|
||||||
$('div.minthrottle').hide();
|
$('div.minthrottle').hide();
|
||||||
$('div.maxthrottle').hide();
|
$('div.maxthrottle').hide();
|
||||||
$('div.mincommand').hide();
|
$('div.mincommand').hide();
|
||||||
|
$('div.checkboxPwm').hide();
|
||||||
|
|
||||||
$('div.digitalIdlePercent').show();
|
$('div.digitalIdlePercent').show();
|
||||||
} else {
|
} else {
|
||||||
$('div.minthrottle').show();
|
$('div.minthrottle').show();
|
||||||
$('div.maxthrottle').show();
|
$('div.maxthrottle').show();
|
||||||
$('div.mincommand').show();
|
$('div.mincommand').show();
|
||||||
|
$('div.checkboxPwm').show();
|
||||||
|
|
||||||
$('div.digitalIdlePercent').hide();
|
$('div.digitalIdlePercent').hide();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue