mockable throttle model
(cherry picked from commit 57263be2fe2886d7a3d4116764396b4b5c24dc49)
This commit is contained in:
parent
0fb88270bc
commit
73ed1afd06
|
@ -37,7 +37,8 @@ struct IIdleController {
|
|||
|
||||
class IdleController : public IIdleController, public EngineModule, public idle_state_s {
|
||||
public:
|
||||
typedef IIdleController interface_t;
|
||||
// Mockable<> interface
|
||||
using interface_t = IIdleController;
|
||||
|
||||
void init();
|
||||
|
||||
|
|
|
@ -131,7 +131,7 @@ public:
|
|||
#if EFI_HPFP && EFI_ENGINE_CONTROL
|
||||
HpfpController,
|
||||
#endif // EFI_HPFP && EFI_ENGINE_CONTROL
|
||||
ThrottleModel,
|
||||
Mockable<ThrottleModel>,
|
||||
#if EFI_ALTERNATOR_CONTROL
|
||||
AlternatorController,
|
||||
#endif /* EFI_ALTERNATOR_CONTROL */
|
||||
|
|
|
@ -4,6 +4,8 @@
|
|||
|
||||
struct ThrottleModelBase : public throttle_model_s, public EngineModule {
|
||||
public:
|
||||
using interface_t = ThrottleModelBase;
|
||||
|
||||
void onSlowCallback() override;
|
||||
|
||||
float estimateThrottleFlow(float tip, float tps, float map, float iat);
|
||||
|
|
Loading…
Reference in New Issue