19 lines
428 B
C++
19 lines
428 B
C++
#pragma once
|
|
|
|
// TODO: this name is now probably wrong, since it checks injectors/ignition too
|
|
struct SensorChecker : public EngineModule {
|
|
public:
|
|
void onSlowCallback() override;
|
|
void onIgnitionStateChanged(bool ignitionOn) override;
|
|
|
|
bool analogSensorsShouldWork() const {
|
|
return m_analogSensorsShouldWork;
|
|
}
|
|
|
|
private:
|
|
bool m_ignitionIsOn = false;
|
|
Timer m_timeSinceIgnOff;
|
|
|
|
bool m_analogSensorsShouldWork = false;
|
|
};
|