mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-26 09:45:37 +03:00
hover point throttle curve adjustment (#14229)
* hover point throttle curve adjustment * Update src/main/fc/rc.c Co-authored-by: Mark Haslinghuis <mark@numloq.nl> * Update src/main/fc/rc.c Co-authored-by: Petr Ledvina <ledvinap@gmail.com> * Update src/main/fc/rc.c Co-authored-by: Petr Ledvina <ledvinap@gmail.com> * refactor lookup calculation and move hover to end of controlRateConfig_s struct * moved sbufReadU8 to the bottom * added sbufBytesRemaining check * update controlRateProfile version from 6 to 7 * moved thrHover8 declaration position * revert variable declaration position change * fixed tests --------- Co-authored-by: Mark Haslinghuis <mark@numloq.nl> Co-authored-by: Petr Ledvina <ledvinap@gmail.com>
This commit is contained in:
parent
fd3a131797
commit
4ae22e9f8e
9 changed files with 60 additions and 10 deletions
|
@ -1062,6 +1062,7 @@ const clivalue_t valueTable[] = {
|
|||
#endif
|
||||
{ PARAM_NAME_THR_MID, VAR_UINT8 | PROFILE_RATE_VALUE, .config.minmaxUnsigned = { 0, 100 }, PG_CONTROL_RATE_PROFILES, offsetof(controlRateConfig_t, thrMid8) },
|
||||
{ PARAM_NAME_THR_EXPO, VAR_UINT8 | PROFILE_RATE_VALUE, .config.minmaxUnsigned = { 0, 100 }, PG_CONTROL_RATE_PROFILES, offsetof(controlRateConfig_t, thrExpo8) },
|
||||
{ PARAM_NAME_THR_HOVER, VAR_UINT8 | PROFILE_RATE_VALUE, .config.minmaxUnsigned = { 0, 100 }, PG_CONTROL_RATE_PROFILES, offsetof(controlRateConfig_t, thrHover8) },
|
||||
{ PARAM_NAME_RATES_TYPE, VAR_UINT8 | PROFILE_RATE_VALUE | MODE_LOOKUP, .config.lookup = { TABLE_RATES_TYPE }, PG_CONTROL_RATE_PROFILES, offsetof(controlRateConfig_t, rates_type) },
|
||||
{ "quickrates_rc_expo", VAR_UINT8 | PROFILE_RATE_VALUE | MODE_LOOKUP, .config.lookup = { TABLE_OFF_ON }, PG_CONTROL_RATE_PROFILES, offsetof(controlRateConfig_t, quickRatesRcExpo) },
|
||||
{ "roll_rc_rate", VAR_UINT8 | PROFILE_RATE_VALUE, .config.minmaxUnsigned = { 1, CONTROL_RATE_CONFIG_RC_RATES_MAX }, PG_CONTROL_RATE_PROFILES, offsetof(controlRateConfig_t, rcRates[FD_ROLL]) },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue