pausing aux work for now

This commit is contained in:
rusefi 2019-11-24 12:45:38 -05:00
parent 6f50cae286
commit 730df561df
2 changed files with 43 additions and 0 deletions

View File

@ -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(&current->open,
trgEventIndex,
current->extra + engine->engineState.auxValveStart,
(schfunc_t)plainPinTurnOn,
current
PASS_ENGINE_PARAMETER_SUFFIX);
}
}
engine->auxStarted = true;
}
*/
void plainPinTurnOn(NamedOutputPin *output) {
output->setHigh();
}

View File

@ -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);