rusEFI
The most advanced open source ECU
Loading...
Searching...
No Matches
lambda_monitor.h
Go to the documentation of this file.
1#pragma once
2
4
6 void update(float rpm, float load);
7 bool isCut() const;
8
9protected:
10 // Returns whether lambda checking should happen at all
11 bool shouldCheckLambda(float rpm, float load) const;
12
13 // Returns false if the current lambda reading is leaner than allowable.
14 // Returns true in any other case (rich enough, bad sensor, recent fuel cut, rpm to low, load too low, etc)
15 virtual bool isCurrentlyGood(float rpm, float load) const;
16
17 virtual float getMaxAllowedLambda(float rpm, float load) const = 0;
18 virtual float getTimeout() const = 0;
19
20 // Determine whether fuel should be restored after a cut occurs
21 // Returns true if OK to leave the "cut" state
22 virtual bool restoreConditionsMet(float rpm, float load) const;
23
24private:
26};
27
29 float getMaxAllowedLambda(float rpm, float load) const override;
30 float getTimeout() const override;
31};
float getTimeout() const override
float getMaxAllowedLambda(float rpm, float load) const override
virtual bool isCurrentlyGood(float rpm, float load) const
bool shouldCheckLambda(float rpm, float load) const
virtual float getTimeout() const =0
virtual float getMaxAllowedLambda(float rpm, float load) const =0
void update(float rpm, float load)
virtual bool restoreConditionsMet(float rpm, float load) const