diff options
Diffstat (limited to 'zumo/protocol.h')
-rw-r--r-- | zumo/protocol.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/zumo/protocol.h b/zumo/protocol.h index 5eb2343..ea3e27d 100644 --- a/zumo/protocol.h +++ b/zumo/protocol.h @@ -19,6 +19,18 @@ typedef enum { DUI_SIGN_LIGHT_GO, /** @brief traffic light green (keep current speed) */ } dui_e_sign; +const char* const DUI_SIGN_LOOKUP[16] = { + [DUI_SIGN_NONE] = "", + [DUI_SIGN_STOP] = "bord\nstop", + [DUI_SIGN_LEFT] = "bord\nlinks", + [DUI_SIGN_RIGHT] = "bord\nrechts", + [DUI_SIGN_SPEED_LIMIT_LOW] = "snelheid\nlaag", + [DUI_SIGN_SPEED_LIMIT_HIGH] = "snelheid\nhoog", + [DUI_SIGN_LIGHT_STOP] = "stop.l.\nrood", + [DUI_SIGN_LIGHT_FLOOR_IT] = "stop.l.\ngeel", + [DUI_SIGN_LIGHT_GO] = "stop.l.\ngroen", +}; + typedef struct { float steer; /** @brief steer value (-1 is left, +1 is right) */ float Speed; /** @brief speed (0-15) */ |