pass camera connection to scenerunner()
This commit is contained in:
parent
df80dfe5c1
commit
97398cffd7
@ -62,7 +62,7 @@ BasicStepperDriver stepper(STEPPER_STEPS, PIN_STEPPER_DIR, PIN_STEPPER_STEP);
|
|||||||
enum State { STATE_MENU, STATE_JOG, STATE_RUN };
|
enum State { STATE_MENU, STATE_JOG, STATE_RUN };
|
||||||
State state = STATE_MENU;
|
State state = STATE_MENU;
|
||||||
|
|
||||||
Scenerunner scenerunner(&lcd, &stepper);
|
Scenerunner scenerunner(&lcd, &stepper, PIN_CAMERA_FOCUS, PIN_CAMERA_SHUTTER);
|
||||||
|
|
||||||
// ===
|
// ===
|
||||||
// Order of menu entries looks chaotic. It makes sense on screen.
|
// Order of menu entries looks chaotic. It makes sense on screen.
|
||||||
|
@ -4,9 +4,11 @@
|
|||||||
|
|
||||||
#include "Scenerunner.h"
|
#include "Scenerunner.h"
|
||||||
|
|
||||||
Scenerunner::Scenerunner(LiquidCrystal *lcd, BasicStepperDriver *stepper) {
|
Scenerunner::Scenerunner(LiquidCrystal *lcd, BasicStepperDriver *stepper, int pin_focus, int pin_shutter) {
|
||||||
_lcd = lcd;
|
_lcd = lcd;
|
||||||
_stepper = stepper;
|
_stepper = stepper;
|
||||||
|
_pin_focus = pin_focus;
|
||||||
|
_pin_shutter = pin_shutter;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Scenerunner::nextAction(){
|
void Scenerunner::nextAction(){
|
||||||
|
@ -19,12 +19,14 @@ class Scenerunner {
|
|||||||
int nSteps = 10;
|
int nSteps = 10;
|
||||||
float distance = 0.5;
|
float distance = 0.5;
|
||||||
|
|
||||||
Scenerunner(LiquidCrystal *lcd, BasicStepperDriver *stepper);
|
Scenerunner(LiquidCrystal *lcd, BasicStepperDriver *stepper, int pin_focus, int pin_shutter);
|
||||||
void nextAction();
|
void nextAction();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
LiquidCrystal *_lcd;
|
LiquidCrystal *_lcd;
|
||||||
BasicStepperDriver *_stepper;
|
BasicStepperDriver *_stepper;
|
||||||
|
int _pin_focus;
|
||||||
|
int _pin_shutter;
|
||||||
enum RunStep { RUN_OFF, RUN_SETTLE, RUN_FOCUS, RUN_SHUTTER, RUN_RETURN };
|
enum RunStep { RUN_OFF, RUN_SETTLE, RUN_FOCUS, RUN_SHUTTER, RUN_RETURN };
|
||||||
RunStep runStep = RUN_OFF;
|
RunStep runStep = RUN_OFF;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user