// todo: migrate to engineState->desiredRpmLimit to get this variable logged

This commit is contained in:
rusefillc 2022-08-22 18:23:25 -04:00
parent 5069937dd0
commit fa34b8ab46
2 changed files with 3 additions and 0 deletions

View File

@ -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

View File

@ -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;