◆ getAcrState()
static bool getAcrState |
( |
| ) |
|
|
static |
Definition at line 15 of file harley_acr.cpp.
15 {
19 if (!currentPhase) {
20 return engineMovedRecently;
21 }
22
23
24 if (!engineMovedRecently) {
25 return false;
26 }
27
30
31 return false;
33 float wrappedPhase = currentPhase.Value > 360 ? currentPhase.Value - 360 : currentPhase.Value;
34
35
37 return false;
38 } else {
39
40 return true;
41 }
42 } else {
43
44 return true;
45 }
46}
PrimaryTriggerDecoder triggerState
bool engineMovedRecently(efitick_t nowNt) const
expected< float > getCurrentEnginePhase(efitick_t nowNt) const
int getSynchronizationCounter() const
TriggerCentral * getTriggerCentral()
static EngineAccessor engine
static constexpr engine_configuration_s * engineConfiguration
bool acrEngineMovedRecently
Referenced by HarleyAcr::onSlowCallback().
Go to the source code of this file.