mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-16 21:05:35 +03:00
Cli PID Controller fix
This commit is contained in:
parent
33b6bac38f
commit
4864f1ce64
3 changed files with 3 additions and 3 deletions
|
@ -699,7 +699,7 @@ void activateConfig(void)
|
|||
#ifdef TELEMETRY
|
||||
telemetryUseConfig(&masterConfig.telemetryConfig);
|
||||
#endif
|
||||
|
||||
currentProfile->pidProfile.pidController = constrain(currentProfile->pidProfile.pidController, 1, 2); // This should prevent UNUSED values. CF 1.11 support
|
||||
pidSetController(currentProfile->pidProfile.pidController);
|
||||
|
||||
#ifdef GPS
|
||||
|
|
|
@ -36,7 +36,7 @@ typedef enum {
|
|||
} pidIndex_e;
|
||||
|
||||
typedef enum {
|
||||
PID_CONTROLLER_MWREWRITE,
|
||||
PID_CONTROLLER_MWREWRITE = 1,
|
||||
PID_CONTROLLER_LUX_FLOAT,
|
||||
PID_COUNT
|
||||
} pidControllerType_e;
|
||||
|
|
|
@ -337,7 +337,7 @@ static const char * const lookupTableGimbalMode[] = {
|
|||
};
|
||||
|
||||
static const char * const lookupTablePidController[] = {
|
||||
"MWREWRITE", "LUX"
|
||||
"UNUSED", "MWREWRITE", "LUX"
|
||||
};
|
||||
|
||||
static const char * const lookupTableSerialRX[] = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue