Add I-term bounds for Alternator Control #6988

only:uaefi
This commit is contained in:
rusefillc 2024-10-20 00:04:35 -04:00
parent 964177e134
commit afadd9056f
2 changed files with 4 additions and 1 deletions

View File

@ -538,7 +538,8 @@ ThermistorConf iat;
float launchTimingRetard;;"deg", 1, 0, -180, 180, 2
int hip9011PrescalerAndSDO;value '6' for 8MHz hw osc\nread hip9011 datasheet for details\ntodo split into two bit fields;"integer", 1, 0, 0, 32, 0
float unusedFloatHere
int16_t alternator_iTermMin;iTerm min value;"", 1, 0, -30000, 30000, 0
int16_t alternator_iTermMax;iTerm max value;"", 1, 0, -30000, 30000, 0
#define DISPLACEMENT_UNITS "L"
#define DISPLACEMENT_TOOLTIP "Engine displacement in litres"

View File

@ -4126,6 +4126,8 @@ cmd_set_engine_type_default = "@@TS_IO_TEST_COMMAND_char@@@@ts_command_e_TS_
field = "P factor", alternatorControl_pFactor, {isAlternatorControlEnabled == 1}
field = "I factor", alternatorControl_iFactor, {isAlternatorControlEnabled == 1}
field = "D factor", alternatorControl_dFactor, {isAlternatorControlEnabled == 1}
field = "iTerm min", alternator_iTermMin, {isAlternatorControlEnabled == 1}
field = "iTerm max", alternator_iTermMax, {isAlternatorControlEnabled == 1}
field = "Min", alternatorControl_minValue, {isAlternatorControlEnabled == 1}
field = "Max", alternatorControl_maxValue, {isAlternatorControlEnabled == 1}
field = "#% duty = Pterm + Iterm + Dterm + offset%"