Fix RC Expo representation above rc rate of 2.0

10.3.x-maintenance
U-DESKTOP-12PPI61\boris.bozic 2016-09-07 00:48:35 +02:00
parent 2588f9d49a
commit f8c5ce5353
3 changed files with 8 additions and 7 deletions

View File

@ -1,3 +1,7 @@
<span>2016.09.07 - 1.7.9 - BetaFlight</span>
<ul>
<li>Fix representation of rc expo above rc rate of 2.0</li>
</ul>
<span>2016.09.06 - 1.7.8 - BetaFlight</span> <span>2016.09.06 - 1.7.8 - BetaFlight</span>
<ul> <ul>
<li>Change rates to super rates</li> <li>Change rates to super rates</li>

View File

@ -13,11 +13,6 @@ var RateCurve = function (useLegacyCurve) {
this.rcCommand = function (rcData, rcRate) { this.rcCommand = function (rcData, rcRate) {
var tmp = Math.min(Math.abs(rcData - midRc), 500); var tmp = Math.min(Math.abs(rcData - midRc), 500);
rcRate = rcRate;
if (rcRate > 2) {
rcRate = rcRate + (rcRate - 2) * 14.54;
}
var result = tmp * rcRate; var result = tmp * rcRate;
@ -66,7 +61,9 @@ var RateCurve = function (useLegacyCurve) {
RateCurve.prototype.rcCommandRawToDegreesPerSecond = function (rcData, rate, rcRate, rcExpo, superExpoActive) { RateCurve.prototype.rcCommandRawToDegreesPerSecond = function (rcData, rate, rcRate, rcExpo, superExpoActive) {
var angleRate; var angleRate;
if (rate !== undefined && rcRate !== undefined && rcExpo !== undefined) { if (rate !== undefined && rcRate !== undefined && rcExpo !== undefined) {
if (rcRate > 2) {
rcRate = rcRate + (rcRate - 2) * 14.54;
}
var inputValue = this.rcCommand(rcData, rcRate); var inputValue = this.rcCommand(rcData, rcRate);
var maxRc = 500 * rcRate; var maxRc = 500 * rcRate;

View File

@ -1,7 +1,7 @@
{ {
"manifest_version": 2, "manifest_version": 2,
"minimum_chrome_version": "38", "minimum_chrome_version": "38",
"version": "1.7.8", "version": "1.7.9",
"author": "Betaflight Squad", "author": "Betaflight Squad",
"name": "Betaflight - Configurator", "name": "Betaflight - Configurator",
"short_name": "Betaflight", "short_name": "Betaflight",