mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-24 08:45:36 +03:00
First cut of allowing a 3POS switch on AUX3 to change rc rate.
rcRate is decreased when low, increased when HIGH and no change when the switch is in the middle. The rcRate ticks up/down at 0.01 every 500ms if the switch is left on. If using a momentary switch and if you can toggle the switch between middle and low or middle and high more frequently than 500ms then the rate will be increased accordingly. Similar to how a keyboard repeat behaves.
This commit is contained in:
parent
fd32ad6fcb
commit
6d7035819f
7 changed files with 324 additions and 4 deletions
|
@ -430,7 +430,7 @@ void activateConfig(void)
|
|||
{
|
||||
static imuRuntimeConfig_t imuRuntimeConfig;
|
||||
|
||||
generatePitchCurve(¤tProfile->controlRateConfig);
|
||||
generatePitchRollCurve(¤tProfile->controlRateConfig);
|
||||
generateThrottleCurve(¤tProfile->controlRateConfig, &masterConfig.escAndServoConfig);
|
||||
useRcControlsConfig(currentProfile->modeActivationConditions);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue