Add dshot900/1200 // Hide unsynced pwm for dshot

10.3.x-maintenance
U-DESKTOP-12PPI61\boris.bozic 2017-01-09 23:41:45 +01:00
parent 603ea4e328
commit a168501e3a
3 changed files with 12 additions and 0 deletions

View File

@ -1833,6 +1833,9 @@
"configurationEscProtocol": { "configurationEscProtocol": {
"message": "ESC/Motor protocol" "message": "ESC/Motor protocol"
}, },
"configurationEscProtocolHelp": {
"message": "Select here your motor protocol. <br>Make sure to verify product site of your ESC to what protocol is supported. <br> <b>Be carefull using DSHOT900 and DSHOT1200 as not many ESC's support it!</b>"
},
"configurationunsyndePwm": { "configurationunsyndePwm": {
"message": "Motor PWM speed Separated from PID speed" "message": "Motor PWM speed Separated from PID speed"
}, },

View File

@ -38,6 +38,7 @@
<!-- list generated here --> <!-- list generated here -->
</select> </select>
<span i18n="configurationEscProtocol"></span> <span i18n="configurationEscProtocol"></span>
<div class="helpicon cf_tip" i18n_title="configurationEscProtocolHelp"></div>
</label> </label>
</div> </div>
<div class="checkboxPwm" style="border-bottom: 1px solid #ddd; padding-bottom: 5px;"> <div class="checkboxPwm" style="border-bottom: 1px solid #ddd; padding-bottom: 5px;">

View File

@ -209,6 +209,11 @@ TABS.configuration.initialize = function (callback, scrollPosition) {
escprotocols.push('DSHOT150'); escprotocols.push('DSHOT150');
escprotocols.push('DSHOT300'); escprotocols.push('DSHOT300');
escprotocols.push('DSHOT600'); escprotocols.push('DSHOT600');
if (semver.gte(CONFIG.apiVersion, "1.26.0")) {
escprotocols.push('DSHOT900');
escprotocols.push('DSHOT1200');
}
} }
var esc_protocol_e = $('select.escprotocol'); var esc_protocol_e = $('select.escprotocol');
@ -224,12 +229,15 @@ TABS.configuration.initialize = function (callback, scrollPosition) {
$('div.minthrottle').hide(); $('div.minthrottle').hide();
$('div.maxthrottle').hide(); $('div.maxthrottle').hide();
$('div.mincommand').hide(); $('div.mincommand').hide();
$('div.checkboxPwm').hide();
$('div.unsyncedpwmfreq').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();
} }