PlayBack

Dependencies:   TPixy-Interface

Fork of ObjectFollower by ECE4333 - 2018 - Ahmed & Brandon

Committer:
asobhy
Date:
Thu Mar 29 22:33:52 2018 +0000
Revision:
23:1839085ffdcf
Parent:
22:c09acff62e6a
PLAYBACK SUBSYSTEM WORKING!!!

Who changed what in which revision?

UserRevisionLine numberNew contents of line
asobhy 8:a0890fa79084 1 /******************************************************************************/
asobhy 8:a0890fa79084 2 // ECE4333
asobhy 9:fe56b888985c 3 // LAB Partner 1: Ahmed Sobhy - ID: 3594449
asobhy 9:fe56b888985c 4 // LAB Partner 2: Brandon Kingman - ID: 3470444
asobhy 9:fe56b888985c 5 // Project: Autonomous Robot Design
asobhy 9:fe56b888985c 6 // Instructor: Prof. Chris Diduch
asobhy 8:a0890fa79084 7 /******************************************************************************/
asobhy 0:a355e511bc5d 8
asobhy 0:a355e511bc5d 9 #ifndef PERIODIC_INT_H
asobhy 0:a355e511bc5d 10 #define PERIODIC_INT_H
asobhy 0:a355e511bc5d 11
asobhy 20:9118203f7c9c 12 #include "DE0_driver.h"
asobhy 20:9118203f7c9c 13
asobhy 23:1839085ffdcf 14 #define ARRAY_SIZE 1500
asobhy 23:1839085ffdcf 15
asobhy 23:1839085ffdcf 16 typedef struct {
asobhy 23:1839085ffdcf 17 int size;
asobhy 23:1839085ffdcf 18 int i;
asobhy 23:1839085ffdcf 19 int dpL[ARRAY_SIZE];
asobhy 23:1839085ffdcf 20 int dpR[ARRAY_SIZE];
asobhy 23:1839085ffdcf 21 } dp_t;
asobhy 23:1839085ffdcf 22
asobhy 17:1184df616383 23 // overall robot required speed
asobhy 17:1184df616383 24 extern int Setpoint;
asobhy 22:c09acff62e6a 25 extern int setpointR;
asobhy 22:c09acff62e6a 26 extern int setpointL;
asobhy 23:1839085ffdcf 27 extern bool memoryFull;
asobhy 23:1839085ffdcf 28 extern dp_t dpArray;
asobhy 22:c09acff62e6a 29
asobhy 17:1184df616383 30 extern Mutex mutexSetpoint;
asobhy 17:1184df616383 31
asobhy 15:cf67f83d5409 32 extern osThreadId PiControlId;
asobhy 0:a355e511bc5d 33
asobhy 0:a355e511bc5d 34 void PiControlThreadInit(void);
asobhy 0:a355e511bc5d 35
asobhy 0:a355e511bc5d 36
asobhy 0:a355e511bc5d 37 #endif