20#define BK_SENSOR_PIN POTENCIO
21#define R2D_PIN BUTTON_1
22#define TSON_PIN BUTTON_2
23#define AS_READY_PIN BUTTON_3
24#define STOP_PIN BUTTON_4
25#define STATE_IDLE_GREEN_LED_1_PIN GREEN_LED_1
26#define STATE_IDLE_GREEN_LED_2_PIN GREEN_LED_2
27#define STATE_IDLE_GREEN_LED_3_PIN GREEN_LED_3
28#define STATE_DRIVING_RED_LED_1_PIN RED_LED_1
29#define STATE_DRIVING_RED_LED_2_PIN RED_LED_2
30#define STATE_ASDRIVING_YELLOW_LED_1_PIN YELLOW_LED_1
31#define STATE_ASDRIVING_YELLOW_LED_2_PIN YELLOW_LED_2
33extern volatile bool TSOn;
133 printf(
"TSOn: %d\n",
TSOn);
134 printf(
"ASReady: %d\n",
ASReady);
139 printf(
"State light -> IDLE\n");
142 printf(
"State light -> DRIVING\n");
145 printf(
"State light -> ASDRIVING\n");
159 printf(
"---------------\n");
161 printf(
"TSON READ: %d\n", digitalRead(
TSON_PIN));
void printVariables(int state)
#define STATE_ASDRIVING_YELLOW_LED_2_PIN
void integrationtest(int R2DStatus)
#define STATE_IDLE_GREEN_LED_1_PIN
elapsedMillis print_timer
#define STATE_DRIVING_RED_LED_2_PIN
#define STATE_DRIVING_RED_LED_1_PIN
#define STATE_IDLE_GREEN_LED_3_PIN
#define STATE_ASDRIVING_YELLOW_LED_1_PIN
void brakeValueUpdate()
Integration test.
volatile uint16_t brakeValue
void state_light(int state)
#define STATE_IDLE_GREEN_LED_2_PIN