PlayBack
Dependencies: TPixy-Interface
Fork of ObjectFollower by
Diff: PiControlThread.h
- Revision:
- 23:1839085ffdcf
- Parent:
- 22:c09acff62e6a
diff -r c09acff62e6a -r 1839085ffdcf PiControlThread.h --- a/PiControlThread.h Fri Mar 23 22:42:41 2018 +0000 +++ b/PiControlThread.h Thu Mar 29 22:33:52 2018 +0000 @@ -11,10 +11,21 @@ #include "DE0_driver.h" +#define ARRAY_SIZE 1500 + +typedef struct { + int size; + int i; + int dpL[ARRAY_SIZE]; + int dpR[ARRAY_SIZE]; +} dp_t; + // overall robot required speed extern int Setpoint; extern int setpointR; extern int setpointL; +extern bool memoryFull; +extern dp_t dpArray; extern Mutex mutexSetpoint;