From 65e4277dd4294c48387371cc94a5695e1bdc3791 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Heredero?= Date: Thu, 24 Aug 2023 15:26:12 +0200 Subject: [PATCH] add MEM_addresse --- 306-controller_interface.X/app/car.h | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/306-controller_interface.X/app/car.h b/306-controller_interface.X/app/car.h index b3666b3..93513bf 100644 --- a/306-controller_interface.X/app/car.h +++ b/306-controller_interface.X/app/car.h @@ -20,6 +20,24 @@ #define ID_BROADCAST 0 // Message to and from any module #define ID_DEBUG 0 // Message to and from any module +/******************* + * MEMORY ADRESSES * + *******************/ +#define MEMADD_CONTROL_STEERING_MODE 0x00 +#define MEMADD_CONTROL_ALIVE_TIME 0x01 +#define MEMADD_CONTROL_SPEED_FACTOR 0x02 +#define MEMADD_CONTROL_POWER_FACTOR 0x06 +#define MEMADD_CONTROL_STEERING_FACTOR 0x0A +#define MEMADD_CONTROL_MAX_SPEED_FW 0x0E +#define MEMADD_CONTROL_MAX_SPEED_BW 0x0F +#define MEMADD_JOYSTICK_ALIVE_TIME 0x10 +#define MEMADD_DISPLAY_ALIVE_TIME 0x11 +#define MEMADD_DRIVE_SPEED_TIME 0x12 +#define MEMADD_DRIVE_STOP_TIME 0x13 +#define MEMADD_DRIVE_ALIVE_TIME 0x14 +#define MEMADD_STEERING_ALIVE_TIME 0x15 +#define MEMADD_BATTERY_ALIVE_TIME 0x16 + typedef struct { uint8_t CONTROL_STEERING_MODE; uint8_t CONTROL_ALIVE_TIME; @@ -35,7 +53,8 @@ typedef struct { uint8_t DRIVE_ALIVE_TIME; uint8_t STEERING_ALIVE_TIME; uint8_t BATTERY_ALIVE_TIME; -} CAR_CST; +} CAR_CST_TYPE; +CAR_CST_TYPE CAR_CST; #endif /* CAR_H */