fixing
This commit is contained in:
parent
2289c465b5
commit
53b864bdda
|
@ -201,7 +201,8 @@ floatms_t getBaseFuel(int rpm DECLARE_ENGINE_PARAMETER_SUFFIX) {
|
|||
|
||||
if ((CONFIG(fuelAlgorithm) == LM_SPEED_DENSITY) ||
|
||||
(engineConfiguration->fuelAlgorithm == LM_REAL_MAF) ||
|
||||
(engineConfiguration->fuelAlgorithm == LM_ALPHA_N_2)) {
|
||||
(engineConfiguration->fuelAlgorithm == LM_ALPHA_N_2) ||
|
||||
(engineConfiguration->fuelAlgorithm == LM_MOCK)) {
|
||||
// airmass modes - get airmass first, then convert to fuel
|
||||
auto model = getAirmassModel(PASS_ENGINE_PARAMETER_SIGNATURE);
|
||||
efiAssert(CUSTOM_ERR_ASSERT, model != nullptr, "Invalid airmass mode", 0.0f);
|
||||
|
|
|
@ -1,7 +1,10 @@
|
|||
#pragma once
|
||||
|
||||
#include "electronic_throttle.h"
|
||||
#include "dc_motor.h"
|
||||
#include "table_helper.h"
|
||||
#include "pwm_generator_logic.h"
|
||||
#include "airmass.h"
|
||||
|
||||
#include "gmock/gmock.h"
|
||||
|
||||
|
@ -55,5 +58,9 @@ public:
|
|||
|
||||
class MockAirmass : public AirmassModelBase {
|
||||
public:
|
||||
MockAirmass() : AirmassModelBase(veTable) {}
|
||||
|
||||
MockVp3d veTable;
|
||||
|
||||
MOCK_METHOD(AirmassResult, getAirmass, (int rpm), (override));
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue