DuckieTownCarHS
Dependencies: TCS3200 X_NUCLEO_IKS01A2 mbed-rtos mbed
Fork of DuckieTownCar by
VM_Car/ByteCode.h
- Committer:
- deangelis1993
- Date:
- 2017-02-15
- Revision:
- 0:65ecca01ac5c
File content as of revision 0:65ecca01ac5c:
#ifndef _ByteCode_h #define _ByteCode_h struct Code{ unsigned int cop : 4;//cop-> codice operativo, op-> operando di 4 bit ciascuno unsigned int op : 4; }; struct ByteCode{ Code* code; unsigned int dim_code; }; #define N_COP 3/*Per N_COP si intende solo il numero di cop che si possono usare, quindi non si contano quelli straordinari(NOPE e Random)*/ /******************************** * Definizione codici operativi * *********************************/ #define NOPE_CODE 0x0 #define RANDOM_CODE 0xF #define DRITTO_CODE 0x1 #define RIGHT_CODE 0x2 #define LEFT_CODE 0x3 #define CURVA_RIGHT_CODE 0x4 #define CURVA_LEFT_CODE 0x5 #endif