rusEFI
The most advanced open source ECU
Loading...
Searching...
No Matches
controllers
algo
fuel
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
11
class
DfcoController
:
public
EngineModule
{
12
public
:
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
22
private
:
23
bool
getState
()
const
;
24
bool
m_isDfco
=
false
;
25
26
mutable
Hysteresis
m_mapHysteresis
;
27
28
Timer
m_timeSinceCut
;
29
Timer
m_timeSinceNoCut
;
30
};
DfcoController
Definition
dfco.h:11
DfcoController::update
void update()
Definition
dfco.cpp:66
DfcoController::getTimeSinceCut
float getTimeSinceCut() const
Definition
dfco.cpp:90
DfcoController::m_isDfco
bool m_isDfco
Definition
dfco.h:24
DfcoController::getTimingRetard
float getTimingRetard() const
Definition
dfco.cpp:94
DfcoController::cutFuel
bool cutFuel() const
Definition
dfco.cpp:81
DfcoController::m_timeSinceCut
Timer m_timeSinceCut
Definition
dfco.h:28
DfcoController::m_timeSinceNoCut
Timer m_timeSinceNoCut
Definition
dfco.h:29
DfcoController::getState
bool getState() const
Definition
dfco.cpp:8
DfcoController::m_mapHysteresis
Hysteresis m_mapHysteresis
Definition
dfco.h:26
EngineModule
Definition
engine_module.h:9
Hysteresis
Definition
hysteresis.h:19
engine_module.h
hysteresis.h
Generated on Sat Sep 27 2025 00:10:04 for rusEFI by
1.9.8