Formula Student Electronics & Software
The code for the embedded software
|
#include "model/digitalData.hpp"
#include "unity.h"
#include "embedded/digitalReceiver.hpp"
#include "model/systemData.hpp"
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 | ASMS_IN_PIN BUTTON_1 |
#define | SDC_STATE_PIN BUTTON_2 |
#define | SDC_LOGIC_WATCHDOG_IN_PIN BUTTON_3 |
#define | SENSOR_PRESSURE_1_PIN BUTTON_4 |
#define | SENSOR_PRESSURE_2_PIN BUTTON_5 |
#define | LWSS_PIN BUTTON_6 |
#define | WHEEL_MEASUREMENT_INTERVAL_MS 1000 |
#define | WHEEL_MEASUREMENT_INTERVAL_MIN (WHEEL_MEASUREMENT_INTERVAL_MS / 60000.0) |
#define | PULSES_PER_ROTATION 60 |
Functions | |
void | setUp () |
Test the Left Wheel Speed Sensor Check the Left wheel Speed Sensor is being well calculated PROTOCOL: | |
int | main () |
Variables | |
SystemData | systemData |
auto | digitalRecv = DigitalReceiver(&systemData.digitalData, &systemData.mission) |
#define ASMS_IN_PIN BUTTON_1 |
Definition at line 27 of file test_digitalReceiver.cpp.
#define BUTTON_1 7 |
Definition at line 20 of file test_digitalReceiver.cpp.
#define BUTTON_2 8 |
Definition at line 21 of file test_digitalReceiver.cpp.
#define BUTTON_3 9 |
Definition at line 22 of file test_digitalReceiver.cpp.
#define BUTTON_4 10 |
Definition at line 23 of file test_digitalReceiver.cpp.
#define BUTTON_5 11 |
Definition at line 24 of file test_digitalReceiver.cpp.
#define BUTTON_6 12 |
Definition at line 25 of file test_digitalReceiver.cpp.
#define GREEN_LED_1 4 |
Definition at line 13 of file test_digitalReceiver.cpp.
#define GREEN_LED_2 5 |
Definition at line 14 of file test_digitalReceiver.cpp.
#define GREEN_LED_3 6 |
Definition at line 15 of file test_digitalReceiver.cpp.
#define LWSS_PIN BUTTON_6 |
Definition at line 32 of file test_digitalReceiver.cpp.
#define PULSES_PER_ROTATION 60 |
Definition at line 36 of file test_digitalReceiver.cpp.
#define RED_LED_1 0 |
Definition at line 16 of file test_digitalReceiver.cpp.
#define RED_LED_2 1 |
Definition at line 17 of file test_digitalReceiver.cpp.
#define SDC_LOGIC_WATCHDOG_IN_PIN BUTTON_3 |
Definition at line 29 of file test_digitalReceiver.cpp.
#define SDC_STATE_PIN BUTTON_2 |
Definition at line 28 of file test_digitalReceiver.cpp.
#define SENSOR_PRESSURE_1_PIN BUTTON_4 |
Definition at line 30 of file test_digitalReceiver.cpp.
#define SENSOR_PRESSURE_2_PIN BUTTON_5 |
Definition at line 31 of file test_digitalReceiver.cpp.
#define WHEEL_MEASUREMENT_INTERVAL_MIN (WHEEL_MEASUREMENT_INTERVAL_MS / 60000.0) |
Definition at line 35 of file test_digitalReceiver.cpp.
#define WHEEL_MEASUREMENT_INTERVAL_MS 1000 |
Definition at line 34 of file test_digitalReceiver.cpp.
#define YELLOW_LED_1 2 |
Definition at line 18 of file test_digitalReceiver.cpp.
#define YELLOW_LED_2 3 |
Definition at line 19 of file test_digitalReceiver.cpp.
int main | ( | void | ) |
Definition at line 106 of file test_digitalReceiver.cpp.
void setUp | ( | void | ) |
Test the Left Wheel Speed Sensor Check the Left wheel Speed Sensor is being well calculated PROTOCOL:
Definition at line 96 of file test_digitalReceiver.cpp.
auto digitalRecv = DigitalReceiver(&systemData.digitalData, &systemData.mission) |
Definition at line 44 of file test_digitalReceiver.cpp.
SystemData systemData |
Definition at line 43 of file test_digitalReceiver.cpp.