|
Formula Student Electronics & Software
The code for the embedded software
|
#include <Arduino.h>#include <Bounce2.h>#include "apps.h"#include "can.h"#include "debug.h"#include "display.h"

Go to the source code of this file.
Macros | |
| #define | buzzerPin 4 |
| #define | R2D_PIN 32 |
| #define | R2D_TIMEOUT 500 |
| #define | APPS_1_PIN 41 |
| #define | APPS_2_PIN 40 |
| #define | STARTUP_DELAY_MS 10000 |
| #define | APPS_READ_PERIOD_MS 20 |
| #define | BAMOCAR_ATTENUATION_FACTOR 1 |
| #define | ASBuzzer 8000 |
Enumerations | |
| enum | status { IDLE , DRIVING , ASDRIVING } |
Functions | |
| void | playR2DSound () |
| void | statemachine () |
Variables | |
| volatile bool | TSOn |
| volatile bool | R2DOverride |
| Bounce | r2dButton |
| volatile bool | ASReady |
| elapsedMillis | R2DTimer |
| elapsedMillis | APPSTimer |
| CAN_message_t | disable |
| FlexCAN_T4< CAN1, RX_SIZE_256, TX_SIZE_16 > | can1 |
| status | R2DStatus |
| #define APPS_1_PIN 41 |
Definition at line 14 of file statemachine.hpp.
| #define APPS_2_PIN 40 |
Definition at line 15 of file statemachine.hpp.
| #define APPS_READ_PERIOD_MS 20 |
Definition at line 19 of file statemachine.hpp.
| #define ASBuzzer 8000 |
Definition at line 22 of file statemachine.hpp.
| #define BAMOCAR_ATTENUATION_FACTOR 1 |
Definition at line 20 of file statemachine.hpp.
| #define buzzerPin 4 |
Definition at line 9 of file statemachine.hpp.
| #define R2D_PIN 32 |
Definition at line 11 of file statemachine.hpp.
| #define R2D_TIMEOUT 500 |
Definition at line 12 of file statemachine.hpp.
| #define STARTUP_DELAY_MS 10000 |
Definition at line 17 of file statemachine.hpp.
| enum status |
| Enumerator | |
|---|---|
| IDLE | |
| DRIVING | |
| ASDRIVING | |
Definition at line 37 of file statemachine.hpp.
| void playR2DSound | ( | ) |
| void statemachine | ( | ) |
Definition at line 53 of file statemachine.hpp.


| elapsedMillis APPSTimer |
Definition at line 30 of file statemachine.hpp.
|
extern |
Definition at line 32 of file statemachine.hpp.
| status R2DStatus |
Definition at line 44 of file statemachine.hpp.