mirror of
https://github.com/supleed2/ELEC50003-P1-CW.git
synced 2024-12-23 05:55:50 +00:00
34114e1b55
Change colour to string Fix distance counting
27 lines
380 B
C++
27 lines
380 B
C++
#ifndef INSTRUCTION_H
|
|
#define INSTRUCTION_H
|
|
#include <string>
|
|
|
|
typedef enum {
|
|
INSTR_RESET = -1,
|
|
INSTR_STOP,
|
|
INSTR_MOVE,
|
|
INSTR_CHARGE,
|
|
INSTR_WAIT,
|
|
INSTR_COLOUR
|
|
} instr_t;
|
|
|
|
typedef struct instruction
|
|
{
|
|
int id;
|
|
int instr;
|
|
int heading;
|
|
int distance;
|
|
float speed;
|
|
int charge;
|
|
int time;
|
|
String colour;
|
|
} RoverInstruction;
|
|
|
|
#endif
|