ELEC50003-P1-CW/Control/include/instruction.h
Aadi Desai 531a86c6d0 Fix instruction struct
Type declaration of colour variable
2021-06-15 08:52:33 +01:00

26 lines
359 B
C

#ifndef INSTRUCTION_H
#define INSTRUCTION_H
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;
int colour;
} RoverInstruction;
#endif