rusefi/firmware/controllers/algo/fuel/dfco.h

28 lines
472 B
C
Raw Normal View History

/**
* @file dfco.h
*/
#pragma once
#include "engine_module.h"
2023-08-30 20:11:24 -07:00
#include <rusefi/timer.h>
2024-09-12 22:55:49 -07:00
#include "hysteresis.h"
// DFCO = deceleration fuel cut off, ie, save gas when your foot is off the pedal
class DfcoController : public EngineModule {
public:
void update();
bool cutFuel() const;
float getTimeSinceCut() const;
private:
bool getState() const;
bool m_isDfco = false;
2024-09-12 22:55:49 -07:00
mutable Hysteresis m_mapHysteresis;
Timer m_timeSinceCut;
Timer m_timeSinceNoCut;
};