mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-17 21:35:44 +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
|
#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
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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[] = {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue