pausing aux work for now
This commit is contained in:
parent
6f50cae286
commit
730df561df
|
@ -21,6 +21,35 @@
|
|||
EXTERN_ENGINE
|
||||
;
|
||||
|
||||
/**
|
||||
//void plainPinTurnOn(AuxActor *current) {
|
||||
// NamedOutputPin *output = &enginePins.auxValve[current->valveIndex];
|
||||
if (!engine->auxStarted) {
|
||||
|
||||
for (int valveIndex = 0; valveIndex < AUX_DIGITAL_VALVE_COUNT; valveIndex++) {
|
||||
for (int phaseIndex = 0; phaseIndex < 2; phaseIndex++) {
|
||||
AuxActor *current = &actors[phaseIndex][valveIndex];
|
||||
|
||||
// if ()
|
||||
|
||||
|
||||
scheduleOrQueue(¤t->open,
|
||||
trgEventIndex,
|
||||
current->extra + engine->engineState.auxValveStart,
|
||||
(schfunc_t)plainPinTurnOn,
|
||||
current
|
||||
PASS_ENGINE_PARAMETER_SUFFIX);
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
engine->auxStarted = true;
|
||||
}
|
||||
|
||||
*/
|
||||
|
||||
void plainPinTurnOn(NamedOutputPin *output) {
|
||||
output->setHigh();
|
||||
}
|
||||
|
|
|
@ -9,7 +9,21 @@
|
|||
|
||||
#include "engine.h"
|
||||
|
||||
/*
|
||||
class AuxActor {
|
||||
public:
|
||||
int phaseIndex;
|
||||
int valveIndex;
|
||||
angle_t extra;
|
||||
|
||||
AngleBasedEvent open;
|
||||
AngleBasedEvent close;
|
||||
};
|
||||
*/
|
||||
|
||||
void initAuxValves(Logging *sharedLogger DECLARE_ENGINE_PARAMETER_SUFFIX);
|
||||
void updateAuxValves(DECLARE_ENGINE_PARAMETER_SIGNATURE);
|
||||
//void plainPinTurnOn(AuxActor *current);
|
||||
void plainPinTurnOn(NamedOutputPin *output);
|
||||
void plainPinTurnOff(NamedOutputPin *output);
|
||||
|
||||
|
|
Loading…
Reference in New Issue