MBED Framework with communication to be tested

Dependencies:   mbed

PROTOTYPES.h

Committer:
AndrewLouw
Date:
2017-06-14
Revision:
0:a32d085719df
Child:
1:e8c5a9654f5f

File content as of revision 0:a32d085719df:

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,double *panel_locations);
void getlocations(double Upperlimit, double Lowerlimit,double *panel_locations);
void sendlocations(double *panel_locations);
float toEncoder(double angle);
void interruptHandler();