-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathState.h
More file actions
51 lines (40 loc) · 1 KB
/
State.h
File metadata and controls
51 lines (40 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/*
* State.h
*
* Created on: Jul 1, 2014
* Author: mathias
*/
#ifndef STATE_H_
#define STATE_H_
class State {
public:
State();
void setTotalNbrOfPhotos(long nbrOfPhotos);
long getTotalNbrOfPhotos();
void setExposureWaitTime(long waitTime);
long getExposureWaitTime();
void setMotorRunTime(long motorOnTime);
long getMotorRunTime();
void setDirection(int newDirection);
int getDirection();
int getRunState();
void setRunState(int runState);
void setNbrOfPhotosTaken(int nbr);
long getNbrOfPhotosTaken();
static const int RIGHT = 0;
static const int LEFT = 1;
static const int STATE_IDLE = 0;
static const int STATE_MOVE_TO_START_POSITION = 1;
static const int STATE_MOVING_TO_START_POSITION = 2;
static const int STATE_START = 3;
static const int STATE_RUNNING = 4;
static const int STATE_STOP = 5;
private:
long totalNbrOfPhotos;
long exposureWaitTime; // [ms]
long motorRunTime; // [ms]
int direction; // LEFT|RIGHT
int runState;
long nbrOfPhotosTaken;
};
#endif /* STATE_H_ */