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);
43 while (!test.check()) {
46 while (!test.check()) {
61 while (!test.check()) {
78 while (!test.check()) {
Class responsible for controlling digital outputs in the Master Teensy.
static void closeSDC()
Closes the SDC in Master and SDC Logic.
void enterEmergencyState()
ASSI LEDs blue flashing, sdc open and buzzer ringing.
static void openSDC()
Opens the SDC in Master and SDC Logic.
void blinkLED(int pin)
Blinks the LED at the given pin.
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: