mirror of
https://github.com/supleed2/ELEC50003-P1-CW.git
synced 2024-11-10 01:35:50 +00:00
22 lines
295 B
C
22 lines
295 B
C
#ifndef INSTRUCTION_H
|
|
#define INSTRUCTION_H
|
|
|
|
typedef enum {
|
|
INSTR_RESET = -1,
|
|
INSTR_STOP,
|
|
INSTR_MOVE,
|
|
INSTR_CHARGE
|
|
} instr_t;
|
|
|
|
typedef struct instruction
|
|
{
|
|
int id;
|
|
int instr;
|
|
int heading;
|
|
int distance;
|
|
float speed;
|
|
int charge;
|
|
} RoverInstruction;
|
|
|
|
#endif
|