Remove Idle Percent
parent
b905852b78
commit
07480419c7
|
@ -648,16 +648,16 @@
|
|||
"message": "This is the 'idle' value in percent of maximum throttle that is sent to the ESCs when the craft is armed and the trottle stick is at minimum position. Increase the percent value to gain more idle speed."
|
||||
},
|
||||
"configurationThrottleMinimum": {
|
||||
"message": "Motor Idle Throttle Value (absolute / percent)"
|
||||
"message": "Minimum Throttle (Lowest ESC value when armed)"
|
||||
},
|
||||
"configurationThrottleMinimumHelp": {
|
||||
"message": "This is the 'idle' value (absolute / as a percentage of the throttle range) that is sent to the ESCs when the craft is armed and the trottle stick is at minimum position. Increase the value or to gain more idle speed."
|
||||
"message": "This is the 'idle' value that is sent to the ESCs when the craft is armed and the trottle stick is at minimum position. Increase the value or to gain more idle speed. Also raise the value in case of desyncs!"
|
||||
},
|
||||
"configurationThrottleMaximum": {
|
||||
"message": "Maximum Throttle"
|
||||
"message": "Maximum Throttle (Highest ESC value when armed)"
|
||||
},
|
||||
"configurationThrottleMinimumCommand": {
|
||||
"message": "Minimum Command"
|
||||
"message": "Minimum Command (ESC value when disarmed)"
|
||||
},
|
||||
"configurationThrottleMinimumCommandHelp": {
|
||||
"message": "This is the value that is sent to the ESCs when the craft is disarmed. Set this to a value that has the motors stopped (1000 for most ESCs)."
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
<span>2016.01.18 - 1.9.0 - BetaFlight</span>
|
||||
<ul>
|
||||
<li>Remove throttle percentage for PWM</li>
|
||||
<li>Some cleanup</li>
|
||||
</ul>
|
||||
<span>2016.01.16 - 1.8.9 - BetaFlight</span>
|
||||
<ul>
|
||||
<li>Added Tramp Vtx support</li>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"manifest_version": 2,
|
||||
"minimum_chrome_version": "38",
|
||||
"version": "1.8.9",
|
||||
"version": "1.9.0",
|
||||
"author": "Betaflight Squad",
|
||||
"name": "Betaflight - Configurator",
|
||||
"short_name": "Betaflight",
|
||||
|
|
|
@ -96,9 +96,6 @@
|
|||
<div class="numberspacer">
|
||||
<input type="number" name="minthrottle" min="0" max="2000" />
|
||||
</div>
|
||||
<div class="numberspacer">
|
||||
<input type="number" name="idlePercent" min="0.00" max="20.00" step="0.01"/>
|
||||
</div>
|
||||
<span i18n="configurationThrottleMinimum"></span>
|
||||
<div class="helpicon cf_tip" i18n_title="configurationThrottleMinimumHelp"></div>
|
||||
</label>
|
||||
|
|
|
@ -462,30 +462,10 @@ TABS.configuration.initialize = function (callback, scrollPosition) {
|
|||
}
|
||||
|
||||
// fill throttle
|
||||
var minThrottle_e = $('input[name="minthrottle"]');
|
||||
minThrottle_e.val(MISC.minthrottle);
|
||||
$('input[name="minthrottle"]').val(MISC.minthrottle);
|
||||
$('input[name="maxthrottle"]').val(MISC.maxthrottle);
|
||||
$('input[name="mincommand"]').val(MISC.mincommand);
|
||||
|
||||
var idlePercent_e = $('input[name="idlePercent"]');
|
||||
idlePercent_e.change(function () {
|
||||
if (esc_protocol_e.val() - 1 < self.DSHOT_PROTOCOL_MIN_VALUE) {
|
||||
var idlePercent = parseFloat($(this).val())
|
||||
var minCommand = parseInt($('input[name="mincommand"]').val());
|
||||
var maxThrottle = parseInt($('input[name="maxthrottle"]').val());
|
||||
|
||||
minThrottle_e.val(Math.trunc(minCommand + (maxThrottle - minCommand) * idlePercent / 100));
|
||||
}
|
||||
});
|
||||
|
||||
minThrottle_e.change(function () {
|
||||
var minThrottle = parseInt($(this).val());
|
||||
var minCommand = parseInt($('input[name="mincommand"]').val());
|
||||
var maxThrottle = parseInt($('input[name="maxthrottle"]').val());
|
||||
|
||||
idlePercent_e.val(Math.trunc((minThrottle - minCommand) / (maxThrottle - minCommand) * 10000) / 100);
|
||||
}).change();
|
||||
|
||||
// fill battery
|
||||
if (semver.gte(CONFIG.flightControllerVersion, "3.1.0")) {
|
||||
var batteryMeterTypes = [
|
||||
|
|
Loading…
Reference in New Issue