rusEFI
The most advanced open source ECU
Loading...
Searching...
No Matches
accel_enrichment.h
Go to the documentation of this file.
1/**
2 * @file accel_enrichment.h
3 * @brief Acceleration enrichment calculator
4 *
5 * @date Apr 21, 2014
6 * @author Dmitry Sidin
7 * @author Andrey Belomutskiy, (c) 2012-2020
8 */
9
10#pragma once
11
12#include "efitime.h"
13#include "cyclic_buffer.h"
14#include "table_helper.h"
17
18
20#ifdef EFI_UNIT_TEST
21public:
22#endif
23 // This flag is set by onNewValue() when an accel event is detected
24 // and cleared by isAccelEventTriggered() after being read.
26public:
28
29 void onConfigurationChange(engine_configuration_s const* previousConfig) override;
30
32 // This function returns true ONCE per acceleration event.
34
35 int getMaxDeltaIndex();
36 float getMaxDelta();
37
38 void setLength(int length);
39 cyclic_buffer<float> cb;
40 void onNewValue(float currentValue);
42
43 /**
44 * @return Extra fuel squirt duration for TPS acceleration
45 */
47 void onEngineCycleTps();
49 void resetAE();
50 float getTimeSinceAcell() const;
51};
52
void initAccelEnrichment()
void onConfigurationChange(engine_configuration_s const *previousConfig) override
float getTimeSinceAcell() const
cyclic_buffer< float > cb
void onNewValue(float currentValue)
void setLength(int length)