Merge pull request #383 from betaflight/pwm_dshot

Add dshot900/1200 // Hide unsynced pwm for dshot
10.3.x-maintenance
Michael Keller 2017-01-10 11:56:59 +13:00 committed by GitHub
commit f37f5cefb1
3 changed files with 12 additions and 0 deletions

View File

@ -1836,6 +1836,9 @@
"configurationEscProtocol": {
"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": {
"message": "Motor PWM speed Separated from PID speed"
},

View File

@ -38,6 +38,7 @@
<!-- list generated here -->
</select>
<span i18n="configurationEscProtocol"></span>
<div class="helpicon cf_tip" i18n_title="configurationEscProtocolHelp"></div>
</label>
</div>
<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('DSHOT300');
escprotocols.push('DSHOT600');
if (semver.gte(CONFIG.apiVersion, "1.26.0")) {
escprotocols.push('DSHOT900');
escprotocols.push('DSHOT1200');
}
}
var esc_protocol_e = $('select.escprotocol');
@ -224,12 +229,15 @@ TABS.configuration.initialize = function (callback, scrollPosition) {
$('div.minthrottle').hide();
$('div.maxthrottle').hide();
$('div.mincommand').hide();
$('div.checkboxPwm').hide();
$('div.unsyncedpwmfreq').hide();
$('div.digitalIdlePercent').show();
} else {
$('div.minthrottle').show();
$('div.maxthrottle').show();
$('div.mincommand').show();
$('div.checkboxPwm').show();
$('div.digitalIdlePercent').hide();
}