mirror of https://github.com/rusefi/rusefi-1.git
migrating to SensorType::Rpm API
This commit is contained in:
parent
3183a123cd
commit
3bc59bfbb6
|
@ -311,7 +311,7 @@ static void showFuelInfo2(float rpm, float engineLoad) {
|
|||
|
||||
#if EFI_ENGINE_CONTROL
|
||||
static void showFuelInfo() {
|
||||
showFuelInfo2((float) GET_RPM(), getFuelingLoad());
|
||||
showFuelInfo2(Sensor::getOrZero(SensorType::Rpm), getFuelingLoad());
|
||||
}
|
||||
#endif
|
||||
|
||||
|
@ -853,7 +853,7 @@ void updateTunerStudioState() {
|
|||
break;
|
||||
case DBG_INSTANT_RPM:
|
||||
{
|
||||
tsOutputChannels->debugFloatField2 = instantRpm / GET_RPM();
|
||||
tsOutputChannels->debugFloatField2 = instantRpm / Sensor::getOrZero(SensorType::Rpm);
|
||||
|
||||
tsOutputChannels->mostRecentTimeBetweenSparkEvents = engine->mostRecentTimeBetweenSparkEvents;
|
||||
tsOutputChannels->mostRecentTimeBetweenIgnitionEvents = engine->mostRecentTimeBetweenIgnitionEvents;
|
||||
|
|
|
@ -406,7 +406,7 @@ float getBaroCorrection() {
|
|||
float correction = interpolate3d(
|
||||
engineConfiguration->baroCorrTable,
|
||||
engineConfiguration->baroCorrPressureBins, pressure,
|
||||
engineConfiguration->baroCorrRpmBins, GET_RPM()
|
||||
engineConfiguration->baroCorrRpmBins, Sensor::getOrZero(SensorType::Rpm)
|
||||
);
|
||||
|
||||
if (cisnan(correction) || correction < 0.01) {
|
||||
|
|
Loading…
Reference in New Issue