// todo: migrate to engineState->desiredRpmLimit to get this variable logged
This commit is contained in:
parent
5069937dd0
commit
fa34b8ab46
|
@ -103,5 +103,7 @@ running_fuel_s running
|
|||
float egt1
|
||||
float egt2
|
||||
|
||||
int16_t desiredRpmLimit;User-defined RPM hard limit;"rpm", 1, 0, 0, 30000, 0
|
||||
|
||||
! engine_state2_s
|
||||
end_struct
|
||||
|
|
|
@ -12,6 +12,7 @@ void LimpManager::updateState(int rpm, efitick_t nowNt) {
|
|||
|
||||
{
|
||||
// User-configured hard RPM limit, either constant or CLT-lookup
|
||||
// todo: migrate to engineState->desiredRpmLimit to get this variable logged
|
||||
float revLimit = engineConfiguration->useCltBasedRpmLimit
|
||||
? interpolate2d(Sensor::get(SensorType::Clt).value_or(0), engineConfiguration->cltRevLimitRpmBins, engineConfiguration->cltRevLimitRpm)
|
||||
: (float)engineConfiguration->rpmHardLimit;
|
||||
|
|
Loading…
Reference in New Issue