Skip to content

Conversation

@asizon
Copy link
Member

@asizon asizon commented Jun 6, 2021

This PR updates new Actual default values to go with betaflight/betaflight#10724

@sonarqubecloud
Copy link

sonarqubecloud bot commented Jun 6, 2021

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

Comment on lines +2700 to +2703
} else if (semver.gte(FC.CONFIG.apiVersion, API_VERSION_1_44)) {
rcRateDefault = (70).toFixed(0);
rateDefault = (670).toFixed(0);
expoDefault = (0).toFixed(2);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have default values in this file? I didn't notice it before. I thought all the defaults were at fc.js.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes it is designed like that in the @fgiudice98 original code for Rate types.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thougth that we never had Rate defaults in fc.js

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't like the way it is, but changing it now is outside of the scope of this PR, so to me is ok.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we can made this change for next PR's yes, i think it make sense.

@haslinghuis haslinghuis added this to the 10.8.0 milestone Jun 9, 2021
@haslinghuis haslinghuis self-assigned this Jun 9, 2021
@blckmn blckmn merged commit bb18610 into betaflight:master Jun 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants