Formula Student Electronics & Software
The code for the embedded software
Loading...
Searching...
No Matches
test_assi_car.cpp
Go to the documentation of this file.
3#include "metro.h"
4#include "unity.h"
5
6void setUp(void) { DigitalSender ds = DigitalSender(); }
7
15 Metro test{5000};
18 while (!test.check()) {
20 }
21 TEST_PASS();
22}
23
31 Metro test{5000};
34 while (!test.check()) {
36 }
37 TEST_PASS();
38}
39
47 Metro test{5000};
50 while (!test.check()) {
51 }
52 TEST_PASS();
53}
54
62 Metro test{5000};
65 while (!test.check()) {
66 }
67 TEST_PASS();
68}
69
70int main() {
71 UNITY_BEGIN();
76 return UNITY_END();
77}
Class responsible for controlling digital outputs in the Master Teensy.
void enter_emergency_state()
ASSI LEDs blue flashing, sdc open and buzzer ringing.
void blink_led(int pin)
Blinks the LED at the given pin.
static void enter_finish_state()
ASSI blue LED on, ebs valves activated, sdc open.
void enter_driving_state()
ASSI LEDs yellow flashing, ebs valves deactivated, sdc closed.
static void enter_ready_state()
ASSI yellow LED on, ebs valves activated, sdc closed.
Our own implementation of Metro class.
Definition metro.h:13
constexpr int ASSI_BLUE_PIN
constexpr int ASSI_YELLOW_PIN
void test_enterDrivingState_and_turn_off_LEDS(void)
Test the enterDrivingState function PROTOCOL:
void test_enterReadyState_and_turn_off_LEDS(void)
Test the enterReadyState function PROTOCOL:
void test_enterFinishState_and_turn_off_LEDS(void)
Test the enterFinishState function PROTOCOL:
void setUp(void)
void test_enterEmergencyState_and_turn_off_LEDS(void)
Test the enterEmergency state function PROTOCOL:
int main()