mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-18 22:05:17 +03:00
Made new PID loop improvements conditional, disabled some for F3 to save flash space.
This commit is contained in:
parent
9d2c7fd105
commit
a9b3911e03
5 changed files with 71 additions and 14 deletions
|
@ -337,9 +337,11 @@ static const char * const lookupTableVideoSystem[] = {
|
|||
};
|
||||
#endif // USE_MAX7456
|
||||
|
||||
#if defined(USE_ITERM_RELAX)
|
||||
static const char * const lookupTableItermRelax[] = {
|
||||
"OFF", "RP", "RPY"
|
||||
};
|
||||
#endif
|
||||
|
||||
#ifdef USE_ACRO_TRAINER
|
||||
static const char * const lookupTableAcroTrainerDebug[] = {
|
||||
|
@ -422,7 +424,9 @@ const lookupTableEntry_t lookupTables[] = {
|
|||
#ifdef USE_MAX7456
|
||||
LOOKUP_TABLE_ENTRY(lookupTableVideoSystem),
|
||||
#endif // USE_MAX7456
|
||||
#if defined(USE_ITERM_RELAX)
|
||||
LOOKUP_TABLE_ENTRY(lookupTableItermRelax),
|
||||
#endif
|
||||
#ifdef USE_ACRO_TRAINER
|
||||
LOOKUP_TABLE_ENTRY(lookupTableAcroTrainerDebug),
|
||||
#endif // USE_ACRO_TRAINER
|
||||
|
@ -760,8 +764,12 @@ const clivalue_t valueTable[] = {
|
|||
{ "crash_recovery", VAR_UINT8 | PROFILE_VALUE | MODE_LOOKUP, .config.lookup = { TABLE_CRASH_RECOVERY }, PG_PID_PROFILE, offsetof(pidProfile_t, crash_recovery) },
|
||||
|
||||
{ "iterm_rotation", VAR_UINT8 | PROFILE_VALUE | MODE_LOOKUP, .config.lookup = { TABLE_OFF_ON }, PG_PID_PROFILE, offsetof(pidProfile_t, iterm_rotation) },
|
||||
#if defined(USE_SMART_FEEDFORWARD)
|
||||
{ "smart_feedforward", VAR_UINT8 | PROFILE_VALUE | MODE_LOOKUP, .config.lookup = { TABLE_OFF_ON }, PG_PID_PROFILE, offsetof(pidProfile_t, smart_feedforward) },
|
||||
#endif
|
||||
#if defined(USE_ITERM_RELAX)
|
||||
{ "iterm_relax", VAR_UINT8 | PROFILE_VALUE | MODE_LOOKUP, .config.lookup = { TABLE_ITERM_RELAX }, PG_PID_PROFILE, offsetof(pidProfile_t, iterm_relax) },
|
||||
#endif
|
||||
{ "iterm_relax_cutoff_low", VAR_UINT8 | PROFILE_VALUE, .config.minmax = { 1, 100 }, PG_PID_PROFILE, offsetof(pidProfile_t, iterm_relax_cutoff_low) },
|
||||
{ "iterm_relax_cutoff_high", VAR_UINT8 | PROFILE_VALUE, .config.minmax = { 1, 100 }, PG_PID_PROFILE, offsetof(pidProfile_t, iterm_relax_cutoff_high) },
|
||||
{ "iterm_windup", VAR_UINT8 | PROFILE_VALUE, .config.minmax = { 30, 100 }, PG_PID_PROFILE, offsetof(pidProfile_t, itermWindupPointPercent) },
|
||||
|
@ -799,9 +807,11 @@ const clivalue_t valueTable[] = {
|
|||
{ "horizon_tilt_effect", VAR_UINT8 | PROFILE_VALUE, .config.minmax = { 0, 250 }, PG_PID_PROFILE, offsetof(pidProfile_t, horizon_tilt_effect) },
|
||||
{ "horizon_tilt_expert_mode", VAR_UINT8 | PROFILE_VALUE | MODE_LOOKUP, .config.lookup = { TABLE_OFF_ON }, PG_PID_PROFILE, offsetof(pidProfile_t, horizon_tilt_expert_mode) },
|
||||
|
||||
#if defined(USE_ABSOLUTE_CONTROL)
|
||||
{ "abs_control_gain", VAR_UINT8 | PROFILE_VALUE, .config.minmax = { 0, 20 }, PG_PID_PROFILE, offsetof(pidProfile_t, abs_control_gain) },
|
||||
{ "abs_control_limit", VAR_UINT8 | PROFILE_VALUE, .config.minmax = { 10, 255 }, PG_PID_PROFILE, offsetof(pidProfile_t, abs_control_limit) },
|
||||
{ "abs_control_error_limit", VAR_UINT8 | PROFILE_VALUE, .config.minmax = { 1, 45 }, PG_PID_PROFILE, offsetof(pidProfile_t, abs_control_error_limit) },
|
||||
#endif
|
||||
|
||||
|
||||
// PG_TELEMETRY_CONFIG
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue