ELEC50003-P1-CW/Control/include/instruction.h
Aadi Desai 39a8d232a7 Add wait function to rover
Instruction type and handling within switch statements
2021-06-13 21:43:43 +01:00

24 lines
325 B
C

#ifndef INSTRUCTION_H
#define INSTRUCTION_H
typedef enum {
INSTR_RESET = -1,
INSTR_STOP,
INSTR_MOVE,
INSTR_CHARGE,
INSTR_WAIT
} instr_t;
typedef struct instruction
{
int id;
int instr;
int heading;
int distance;
float speed;
int charge;
int time;
} RoverInstruction;
#endif