|
Formula Student Electronics & Software
The code for the embedded software
|
#include "Arduino.h"
Go to the source code of this file.
Macros | |
| #define | GREEN_LED_1 4 |
| #define | GREEN_LED_2 5 |
| #define | GREEN_LED_3 6 |
| #define | RED_LED_1 0 |
| #define | RED_LED_2 1 |
| #define | YELLOW_LED_1 2 |
| #define | YELLOW_LED_2 3 |
| #define | BUTTON_1 7 |
| #define | BUTTON_2 8 |
| #define | BUTTON_3 9 |
| #define | BUTTON_4 10 |
| #define | BUTTON_5 11 |
| #define | BUTTON_6 12 |
| #define | POTENCIO 14 |
| #define | BK_SENSOR_PIN POTENCIO |
| #define | R2D_PIN BUTTON_1 |
| #define | TSON_PIN BUTTON_2 |
| #define | AS_READY_PIN BUTTON_3 |
| #define | STOP_PIN BUTTON_4 |
| #define | STATE_IDLE_GREEN_LED_1_PIN GREEN_LED_1 |
| #define | STATE_IDLE_GREEN_LED_2_PIN GREEN_LED_2 |
| #define | STATE_IDLE_GREEN_LED_3_PIN GREEN_LED_3 |
| #define | STATE_DRIVING_RED_LED_1_PIN RED_LED_1 |
| #define | STATE_DRIVING_RED_LED_2_PIN RED_LED_2 |
| #define | STATE_ASDRIVING_YELLOW_LED_1_PIN YELLOW_LED_1 |
| #define | STATE_ASDRIVING_YELLOW_LED_2_PIN YELLOW_LED_2 |
Functions | |
| void | brakeValueUpdate () |
| Integration test. | |
| void | updateTS () |
| void | updateASReady () |
| void | testing_setup () |
| void | state_light (int state) |
| void | printVariables (int state) |
| void | integrationtest (int R2DStatus) |
Variables | |
| volatile bool | TSOn |
| volatile bool | ASReady |
| volatile uint16_t | brakeValue |
| elapsedMillis | print_timer |
| #define AS_READY_PIN BUTTON_3 |
Definition at line 23 of file integration_test.hpp.
| #define BK_SENSOR_PIN POTENCIO |
Definition at line 20 of file integration_test.hpp.
| #define BUTTON_1 7 |
Definition at line 10 of file integration_test.hpp.
| #define BUTTON_2 8 |
Definition at line 11 of file integration_test.hpp.
| #define BUTTON_3 9 |
Definition at line 12 of file integration_test.hpp.
| #define BUTTON_4 10 |
Definition at line 13 of file integration_test.hpp.
| #define BUTTON_5 11 |
Definition at line 14 of file integration_test.hpp.
| #define BUTTON_6 12 |
Definition at line 15 of file integration_test.hpp.
| #define GREEN_LED_1 4 |
Definition at line 3 of file integration_test.hpp.
| #define GREEN_LED_2 5 |
Definition at line 4 of file integration_test.hpp.
| #define GREEN_LED_3 6 |
Definition at line 5 of file integration_test.hpp.
| #define POTENCIO 14 |
Definition at line 16 of file integration_test.hpp.
| #define R2D_PIN BUTTON_1 |
Definition at line 21 of file integration_test.hpp.
| #define RED_LED_1 0 |
Definition at line 6 of file integration_test.hpp.
| #define RED_LED_2 1 |
Definition at line 7 of file integration_test.hpp.
| #define STATE_ASDRIVING_YELLOW_LED_1_PIN YELLOW_LED_1 |
Definition at line 30 of file integration_test.hpp.
| #define STATE_ASDRIVING_YELLOW_LED_2_PIN YELLOW_LED_2 |
Definition at line 31 of file integration_test.hpp.
| #define STATE_DRIVING_RED_LED_1_PIN RED_LED_1 |
Definition at line 28 of file integration_test.hpp.
| #define STATE_DRIVING_RED_LED_2_PIN RED_LED_2 |
Definition at line 29 of file integration_test.hpp.
| #define STATE_IDLE_GREEN_LED_1_PIN GREEN_LED_1 |
Definition at line 25 of file integration_test.hpp.
| #define STATE_IDLE_GREEN_LED_2_PIN GREEN_LED_2 |
Definition at line 26 of file integration_test.hpp.
| #define STATE_IDLE_GREEN_LED_3_PIN GREEN_LED_3 |
Definition at line 27 of file integration_test.hpp.
| #define STOP_PIN BUTTON_4 |
Definition at line 24 of file integration_test.hpp.
| #define TSON_PIN BUTTON_2 |
Definition at line 22 of file integration_test.hpp.
| #define YELLOW_LED_1 2 |
Definition at line 8 of file integration_test.hpp.
| #define YELLOW_LED_2 3 |
Definition at line 9 of file integration_test.hpp.
| void brakeValueUpdate | ( | ) |
Integration test.
This should be used as integration testing together with the testing board. It simulates the behavior of:
Definition at line 57 of file integration_test.hpp.

| void integrationtest | ( | int | R2DStatus | ) |
| void printVariables | ( | int | state | ) |
| void state_light | ( | int | state | ) |
| void testing_setup | ( | ) |
| void updateASReady | ( | ) |
| void updateTS | ( | ) |
| elapsedMillis print_timer |
Definition at line 37 of file integration_test.hpp.