Skip to content

Commit f8c5ce5

Browse files
committed
Fix RC Expo representation above rc rate of 2.0
1 parent 2588f9d commit f8c5ce5

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

changelog.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
<span>2016.09.07 - 1.7.9 - BetaFlight</span>
2+
<ul>
3+
<li>Fix representation of rc expo above rc rate of 2.0</li>
4+
</ul>
15
<span>2016.09.06 - 1.7.8 - BetaFlight</span>
26
<ul>
37
<li>Change rates to super rates</li>

js/RateCurve.js

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,6 @@ var RateCurve = function (useLegacyCurve) {
1313

1414
this.rcCommand = function (rcData, rcRate) {
1515
var tmp = Math.min(Math.abs(rcData - midRc), 500);
16-
rcRate = rcRate;
17-
18-
if (rcRate > 2) {
19-
rcRate = rcRate + (rcRate - 2) * 14.54;
20-
}
2116

2217
var result = tmp * rcRate;
2318

@@ -66,7 +61,9 @@ var RateCurve = function (useLegacyCurve) {
6661
RateCurve.prototype.rcCommandRawToDegreesPerSecond = function (rcData, rate, rcRate, rcExpo, superExpoActive) {
6762
var angleRate;
6863
if (rate !== undefined && rcRate !== undefined && rcExpo !== undefined) {
69-
64+
if (rcRate > 2) {
65+
rcRate = rcRate + (rcRate - 2) * 14.54;
66+
}
7067
var inputValue = this.rcCommand(rcData, rcRate);
7168
var maxRc = 500 * rcRate;
7269

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"manifest_version": 2,
33
"minimum_chrome_version": "38",
4-
"version": "1.7.8",
4+
"version": "1.7.9",
55
"author": "Betaflight Squad",
66
"name": "Betaflight - Configurator",
77
"short_name": "Betaflight",

0 commit comments

Comments
 (0)