◆ auxPlainPinTurnOn()
void auxPlainPinTurnOn |
( |
AuxActor * |
current | ) |
|
Definition at line 38 of file aux_valves.cpp.
38 {
41
43
45
47
49 "aux-valve",
52 action_s::make<plainPinTurnOff>( output )
53 );
54 }
static void scheduleOpen(AuxActor *current)
constexpr auto & module()
NamedOutputPin auxValve[AUX_DIGITAL_VALVE_COUNT]
virtual void setHigh(const char *msg)
static EngineAccessor engine
void wrapAngle(angle_t &angle, const char *msg, ObdCode code)
◆ initAuxValves()
Definition at line 56 of file aux_valves.cpp.
56 {
58 return;
59 }
60
63 return;
64 }
65
67
68 for (int valveIndex = 0; valveIndex < AUX_DIGITAL_VALVE_COUNT; valveIndex++) {
69
70 for (int phaseIndex = 0; phaseIndex < 2; phaseIndex++) {
74 actor->
extra = phaseIndex * 360 + valveIndex * 180;
75
77 }
78 }
79}
void recalculateAuxValveTiming()
AuxActor auxValves[AUX_DIGITAL_VALVE_COUNT][2]
virtual bool hasSensor() const
static constexpr engine_configuration_s * engineConfiguration
void firmwareError(ObdCode code, const char *fmt,...)
bool isBrainPinValid(brain_pin_e brainPin)
Gpio auxValves[AUX_DIGITAL_VALVE_COUNT]
Referenced by commonInitEngineController().
◆ recalculateAuxValveTiming()
void recalculateAuxValveTiming |
( |
| ) |
|
Definition at line 81 of file aux_valves.cpp.
81 {
83 return;
84 }
85
87 if (!tps) {
88
89 return;
90 }
91
95
99
101
105 }
106}
virtual SensorResult get() const =0
static constexpr persistent_config_s * config
@ CUSTOM_AUX_OUT_OF_ORDER
float scriptCurve1[SCRIPT_CURVE_16]
float scriptCurve2Bins[SCRIPT_CURVE_16]
float scriptCurve1Bins[SCRIPT_CURVE_16]
float scriptCurve2[SCRIPT_CURVE_16]
Referenced by initAuxValves(), and EngineState::periodicFastCallback().
Go to the source code of this file.