ManualControl

Dependencies:   TPixy-Interface

Fork of MbedOS_Robot by ECE4333 - 2018 - Ahmed & Brandon

PiControlThread.h

Committer:
asobhy
Date:
2018-03-29
Revision:
23:1839085ffdcf
Parent:
22:c09acff62e6a

File content as of revision 23:1839085ffdcf:

/******************************************************************************/
// ECE4333
// LAB Partner 1:   Ahmed Sobhy - ID: 3594449
// LAB Partner 2:   Brandon Kingman - ID: 3470444
// Project:         Autonomous Robot Design
// Instructor:      Prof. Chris Diduch
/******************************************************************************/

#ifndef PERIODIC_INT_H
#define PERIODIC_INT_H

#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;

extern osThreadId PiControlId;

void PiControlThreadInit(void);


#endif