actually switch camera
This commit is contained in:
parent
780262155a
commit
aa72adad5d
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user