53 Serial.print(
"Current State: ");
55 Serial.println(
"Possible Events are:");
56 Serial.println(
"O - Open");
57 Serial.println(
"A - Automatic Open");
58 Serial.println(
"C - Close");
59 Serial.println(
"a - Automatic Close");
60 Serial.println(
"E - Error");
61 Serial.println(
"R - Resume");
62 Serial.println(
"N - No Event");
63 Serial.println(
"o - Signal: Opened");
64 Serial.println(
"c - Signal: Closed");
65 Serial.print(
"Choose Event: ");
66 while (Serial.available() <= 0) {
68 inByte = Serial.read();
69 Serial.print((
char)inByte);
104 DBINFO1ln(
"Error: Unknown value entered");
The Door Controll class contains the FSM for the Door.
const State getcurrentState()
Get the current State.
Contains the FSM for the Door.
Contains Pre-Compiler directives for diffent Serialprints for Datalogin.
String decodeState(State state)
Decodes the State-Enum and returns a description.
void loop()
Calls the do-function of the active state and hence generates Events.
Signal: Close position reached.
Signal: Open position reached.
Ext: Resume after Error occured.