actually switch camera

This commit is contained in:
Ronald Schaten 2022-02-10 21:35:00 +01:00
parent 780262155a
commit aa72adad5d

View File

@ -36,6 +36,7 @@ void Scenerunner::_runHandler_settle() {
_lcd->print(step);
runStep = RUN_FOCUS;
runStepStart = millis();
digitalWrite(_pin_focus, HIGH);
}
}
@ -50,6 +51,7 @@ void Scenerunner::_runHandler_focus() {
_lcd->print(step);
runStep = RUN_SHUTTER;
runStepStart = millis();
digitalWrite(_pin_shutter, HIGH);
}
}
@ -59,6 +61,8 @@ void Scenerunner::_runHandler_shutter() {
_lcd->print(tShutter);
_lcd->print("ms");
if (millis() >= runStepStart + tShutter) {
digitalWrite(_pin_focus, LOW);
digitalWrite(_pin_shutter, LOW);
if (step >= nSteps) {
_lcd->clear();
_lcd->print("Return to start");
@ -92,7 +96,9 @@ void Scenerunner::_runHandler_move() {
void Scenerunner::_runHandler_return() {
_lcd->setCursor(0, 1);
_lcd->print("rS: RETURN ");
_lcd->print("moving ");
_lcd->print(distance * nSteps);
_lcd->print("mm");
}
void Scenerunner::nextAction() {