rusEFI
The most advanced open source ECU
Loading...
Searching...
No Matches
dfco.h
Go to the documentation of this file.
1/**
2 * @file dfco.h
3 */
4
5#pragma once
6#include "engine_module.h"
7#include <rusefi/timer.h>
8#include "hysteresis.h"
9
10// DFCO = deceleration fuel cut off, ie, save gas when your foot is off the pedal
12public:
13 void update();
14
15 // true if fuel should be cut, false during normal running
16 bool cutFuel() const;
17 // Degrees of timing to retard due to DFCO, positive removes timing
18 float getTimingRetard() const;
19
20 float getTimeSinceCut() const;
21
22private:
23 bool getState() const;
24 bool m_isDfco = false;
25
27
30};
void update()
Definition dfco.cpp:66
float getTimeSinceCut() const
Definition dfco.cpp:90
bool m_isDfco
Definition dfco.h:24
float getTimingRetard() const
Definition dfco.cpp:94
bool cutFuel() const
Definition dfco.cpp:81
Timer m_timeSinceCut
Definition dfco.h:28
Timer m_timeSinceNoCut
Definition dfco.h:29
bool getState() const
Definition dfco.cpp:8
Hysteresis m_mapHysteresis
Definition dfco.h:26