Andrew Louw
/
TrackingMBED
MBED Framework with communication to be tested
PROTOTYPES.h
- Committer:
- AndrewLouw
- Date:
- 2017-07-16
- Revision:
- 2:64443528f6bb
- Parent:
- 1:e8c5a9654f5f
- Child:
- 3:5995028595d2
File content as of revision 2:64443528f6bb:
typedef enum OpModesym {Setup, Canopy_on, Canopy_off, Manual, Error} OpModesym; typedef enum Errorsym {False,Switch_Error} Errorsym; OpModesym readswitches(); void checkLDR(float &LDR1,float &LDR2); void checkMPPT(float *MMPT); bool shouldmove(float *MMPT,float LDR1,float LDR2,double Upperlimit,double Lowelimit,uint8_t *panel_locations); void getlocations(double Upperlimit, double Lowerlimit,uint8_t *panel_locations); void sendlocations(uint8_t *panel_locations); uint8_t toEncoder(double angle); void interruptHandler();