inav icon indicating copy to clipboard operation
inav copied to clipboard

Optional Betaflight rates

Open ianrmurphy opened this issue 7 years ago • 4 comments

Current Behaviour

iNav in Acro (rate) mode has it's own rate calculation which does not match that of Betaflight.

Desired Behaviour

There should be an option to specify and use Betaflight rates.

Suggested Solution

Implement a cli parameter (suggest 'rates_type', allowed values INAV, BETAFLIGHT) to choose between iNav and Betaflight rate calculation of '_rc_rate' and '_srate'.

Who does this impact? Who is this for?

With the recent improvements to iNav perfomance on multirotors in Acro (rate) mode there will be users who wish to switch from Betaflight to iNav. These users may have carefully tuned Betaflight rates which they wish to port over to get a consistent flying experience.

Additional context

Betaflight cli parameter 'rates_type', allowed values: BETAFLIGHT, RACEFLIGHT, KISS.

ianrmurphy avatar Nov 16 '19 21:11 ianrmurphy

Issue-Label Bot is automatically applying the label Feature request to this issue, with a confidence of 0.93. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

issue-label-bot[bot] avatar Nov 16 '19 21:11 issue-label-bot[bot]

Having made some small contributions to Betaflight I am happy to work on this feature. Would appreciate some guidance on the iNav features roadmap and iNav pull request etiquette.

ianrmurphy avatar Nov 16 '19 21:11 ianrmurphy

I honestly think Betaflight rates are one of the worse rates ever. Being unitless with this mix of rates, rc rates and super rates it's counterintuitive and hard to setup. INAV deliberately moved out of those into degrees per second

DzikuVx avatar Dec 24 '19 12:12 DzikuVx

Would you consider adding an option to use the rate curve from this PR on arducopter? It uses the Betaflight super rates for the expo calculation and uses deg/s as end-point.

https://github.com/ArduPilot/ardupilot/pull/18689

Leonard has some analysis of the formula in my original PR (which was not implemented). I personally have found it difficult to replicate the same curve with inav with just endpoint and one expo curve.

https://github.com/ArduPilot/ardupilot/pull/18667

With this, it's possible for someone flying acro to keep the same muscle memory cross arducopter/betaflight/inav.

chronowarper avatar Nov 11 '23 05:11 chronowarper