egoShield
Public Member Functions | List of all members
egoShieldTimeLapse Class Reference
Inheritance diagram for egoShieldTimeLapse:
egoShield

Public Member Functions

void loop (void)
 
- Public Member Functions inherited from egoShield
 egoShield (void)
 Constructor of egoShield class. More...
 
void setup (uint16_t acc=1500, uint16_t vel=100, float P=1.0, float I=0.02, float D=0.006, float res=1, int8_t stallsens=2, uint16_t shutterDelay=250)
 Initializes buttons, OLED, uStepper and BT-module. More...
 

Additional Inherited Members

- Protected Member Functions inherited from egoShield
unsigned char * loadVideoBuffer (unsigned char *data, unsigned char length)
 
void resetButton (buttons *btn)
 Function for resetting the state of a button seperately. More...
 
void resetAllButton ()
 Resets the state of all 4 buttons at once.
 
void inputs (void)
 Reads the four buttons and writes their value; no push, short push or long push, to global variables.
 
uint8_t buttonState (uint8_t button, uint8_t nmbr)
 Returns the button state of the appropriate button. More...
 
void idleMode (void)
 Holds the idle logic; page to show, what buttons to enable etc.
 
void playMode (void)
 Holds the play logic, showing play page and running the recorded sequence.
 
void pauseMode (void)
 Holds the pause logic, showing the pause page and pausing the playing of a sequence.
 
void timeMode (void)
 Holds the timelapse logic, showing the timelapse page.
 
void manForward (void)
 Holds the manual forward logic for driving the stepper motor manually with the pushbuttons.
 
void manBackward (void)
 Holds the manual backward logic for driving the stepper motor manually with the pushbuttons.
 
void startPage (void)
 Holds the code for the start page of the OLED.
 
void idlePage (bool pidMode, float pos)
 Holds the code for the idle page of the OLED. More...
 
void recordPage (bool pidMode, bool recorded, uint8_t index, float pos)
 Holds the code for the record page of the OLED. More...
 
void playPage (bool loopMode, bool pidMode, uint8_t index, bool mode)
 Holds the code for the play page of the OLED. More...
 
void pausePage (bool loopMode, bool pidMode, uint8_t index)
 Holds the code for the pause page of the OLED. More...
 
void timePage (uint8_t step, bool pidMode)
 Holds the code for the timelapse page of the OLED. More...
 
void changeVelocity (void)
 Holds the code for the changing velocity during sequence play.
 
void recordMode (void)
 This function handles the debouncing and tracking of whether buttons are pressed, released or held. More...
 
void debounce (buttons *btn, uint8_t sample)
 
- Protected Attributes inherited from egoShield
Screenscreen
 Contains the main logic of the shield functionality, e.g. transition between states (idle, play, record and pause). More...
 
uint8_t lastPage = NOPAGE
 
uint8_t place
 
uint8_t endmove
 
float pos [CNT]
 
bool pidFlag
 
bool record
 
bool loopMode
 
bool longPushFlag [4]
 
char state
 
uint8_t rec
 
uint8_t play
 
uint8_t fw
 
uint8_t bw
 
float setPoint
 
uint16_t acceleration
 
uint16_t velocity
 
uint8_t microStepping
 
uint16_t faultTolerance
 
uint16_t faultHysteresis
 
float pTerm
 
float iTerm
 
float dTerm
 
float stepSize
 
uint16_t interval
 
float resolution
 
int8_t stallSensitivity
 
bool brakeFlag
 
volatile buttons forwardBtn = {0x1F, DEPRESSED, 0, 0, 0}
 
volatile buttons playBtn = {0x1F, DEPRESSED, 0, 0, 0}
 
volatile buttons recordBtn = {0x1F, DEPRESSED, 0, 0, 0}
 
volatile buttons backwardsBtn = {0x1F, DEPRESSED, 0, 0, 0}
 
uint16_t shutterDelay
 

Detailed Description

Definition at line 422 of file egoShieldS.h.


The documentation for this class was generated from the following files: