1
0
Fork 0
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:
borisbstyle 2015-11-25 13:53:35 +01:00
parent 33b6bac38f
commit 4864f1ce64
3 changed files with 3 additions and 3 deletions

View file

@ -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

View file

@ -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;

View file

@ -337,7 +337,7 @@ static const char * const lookupTableGimbalMode[] = {
};
static const char * const lookupTablePidController[] = {
"MWREWRITE", "LUX"
"UNUSED", "MWREWRITE", "LUX"
};
static const char * const lookupTableSerialRX[] = {