1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-17 13:25:30 +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 #ifdef TELEMETRY
telemetryUseConfig(&masterConfig.telemetryConfig); telemetryUseConfig(&masterConfig.telemetryConfig);
#endif #endif
currentProfile->pidProfile.pidController = constrain(currentProfile->pidProfile.pidController, 1, 2); // This should prevent UNUSED values. CF 1.11 support
pidSetController(currentProfile->pidProfile.pidController); pidSetController(currentProfile->pidProfile.pidController);
#ifdef GPS #ifdef GPS

View file

@ -36,7 +36,7 @@ typedef enum {
} pidIndex_e; } pidIndex_e;
typedef enum { typedef enum {
PID_CONTROLLER_MWREWRITE, PID_CONTROLLER_MWREWRITE = 1,
PID_CONTROLLER_LUX_FLOAT, PID_CONTROLLER_LUX_FLOAT,
PID_COUNT PID_COUNT
} pidControllerType_e; } pidControllerType_e;

View file

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