5#undef SDC_LOGIC_CLOSE_SDC_PIN
6#undef SDC_LOGIC_WATCHDOG_OUT_PIN
9#undef MASTER_SDC_OUT_PIN
11#define SDC_LOGIC_CLOSE_SDC_PIN 2
12#define MASTER_SDC_OUT_PIN 3
13#define EBS_VALVE_1_PIN 4
14#define EBS_VALVE_2_PIN 5
15#define SDC_LOGIC_WATCHDOG_OUT_PIN 6
17#define UNALLOWED_PIN 0
23 for (
int pin = 0; pin < 7; pin++) {
25 digitalWrite(pin, LOW);
42 while (!test.check()) {
45 while (!test.check()) {
60 while (!test.check()) {
77 while (!test.check()) {
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 open_sdc()
Opens the SDC in Master and SDC Logic.
Our own implementation of Metro class.
void test_blinkLED(void)
Test the blinkLED function The toggle watchdog is the same function as blink LED so we can afirm that...
void test_openSDC_then_closeSDC(void)
Test the SDC Functions PROTOCOL:
void test_enterEmergencyState_and_turn_off_LEDS(void)
Test the enterEmergency state function PROTOCOL: