Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: TPixy-Interface
Fork of ObjectFollower by
Diff: PiControlThread.h
- Revision:
- 23:1839085ffdcf
- Parent:
- 22:c09acff62e6a
--- 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;
