Skip to content

Commit

Permalink
Fix RC Expo representation above rc rate of 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
borisbstyle committed Sep 6, 2016
1 parent 2588f9d commit f8c5ce5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
4 changes: 4 additions & 0 deletions changelog.html
Original file line number Diff line number Diff line change
@@ -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>
<ul>
<li>Change rates to super rates</li>
Expand Down
9 changes: 3 additions & 6 deletions js/RateCurve.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,6 @@ var RateCurve = function (useLegacyCurve) {

this.rcCommand = function (rcData, rcRate) {
var tmp = Math.min(Math.abs(rcData - midRc), 500);
rcRate = rcRate;

if (rcRate > 2) {
rcRate = rcRate + (rcRate - 2) * 14.54;
}

var result = tmp * rcRate;

Expand Down Expand Up @@ -66,7 +61,9 @@ var RateCurve = function (useLegacyCurve) {
RateCurve.prototype.rcCommandRawToDegreesPerSecond = function (rcData, rate, rcRate, rcExpo, superExpoActive) {
var angleRate;
if (rate !== undefined && rcRate !== undefined && rcExpo !== undefined) {

if (rcRate > 2) {
rcRate = rcRate + (rcRate - 2) * 14.54;
}
var inputValue = this.rcCommand(rcData, rcRate);
var maxRc = 500 * rcRate;

Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"manifest_version": 2,
"minimum_chrome_version": "38",
"version": "1.7.8",
"version": "1.7.9",
"author": "Betaflight Squad",
"name": "Betaflight - Configurator",
"short_name": "Betaflight",
Expand Down

0 comments on commit f8c5ce5

Please sign in to comment.