Fix esc protocol tooltip for removed dshot1200 (#1689)
Fix esc protocol tooltip for removed dshot120010.7.0-preview
commit
074bb46f78
|
@ -5228,6 +5228,9 @@
|
|||
"configurationEscProtocolHelp": {
|
||||
"message": "Select your motor protocol. <br>Make sure to verify the protocol is supported by your ESC, this information should be on the makers website. <br> <b>Be carefull using DSHOT900 and DSHOT1200 as not many ESC's support it!</b>"
|
||||
},
|
||||
"configurationEscProtocolHelpNoDSHOT1200": {
|
||||
"message": "Select your motor protocol. <br>Make sure to verify the protocol is supported by your ESC, this information should be on the makers website."
|
||||
},
|
||||
"configurationunsyndePwm": {
|
||||
"message": "Motor PWM speed Separated from PID speed"
|
||||
},
|
||||
|
|
|
@ -516,6 +516,9 @@ TABS.configuration.initialize = function (callback, scrollPosition) {
|
|||
$('input[name="motorPoles"]').val(MOTOR_CONFIG.motor_poles);
|
||||
}
|
||||
|
||||
$('#escProtocolTooltip').toggle(semver.lt(CONFIG.apiVersion, "1.42.0"));
|
||||
$('#escProtocolTooltipNoDSHOT1200').toggle(semver.gte(CONFIG.apiVersion, "1.42.0"));
|
||||
|
||||
esc_protocol_e.val(PID_ADVANCED_CONFIG.fast_pwm_protocol + 1);
|
||||
esc_protocol_e.change(function () {
|
||||
var escProtocolValue = parseInt($(this).val()) - 1;
|
||||
|
|
|
@ -137,7 +137,8 @@
|
|||
<!-- list generated here -->
|
||||
</select>
|
||||
<span i18n="configurationEscProtocol"></span>
|
||||
<div class="helpicon cf_tip" i18n_title="configurationEscProtocolHelp"></div>
|
||||
<div id="escProtocolTooltip" class="helpicon cf_tip" i18n_title="configurationEscProtocolHelp"></div>
|
||||
<div id="escProtocolTooltipNoDSHOT1200" class="helpicon cf_tip" i18n_title="configurationEscProtocolHelpNoDSHOT1200"></div>
|
||||
</label>
|
||||
</div>
|
||||
<div class="number checkboxPwm">
|
||||
|
|
Loading…
Reference in New Issue