SmartBox-Sortic
SmartFactory
main.cpp
Go to the documentation of this file.
1 
15 #include <Arduino.h>
16 
17 #include "FSM/BoxCtrl.h"
18 
19 // ===================================== Global Variables =====================================
20 // SensorArray *mSarrP; ///< used for SensorArray access outside setup()
22 
23 // ===================================== Arduino Functions =====================================
24 
25 void setup() {
26  // if (DEBUGGER) {
27  // Serial.begin(9600); //Initialize serial
28  // while (!Serial)
29  // ; // wait for serial port to connect
30  // }
31  boxctrl = new BoxCtrl();
32  delay(100);
33 }
34 
35 void loop() {
36  DBFUNCCALLln("loop()======================================================");
37  boxctrl->loop();
38  // mSarrP->SensorArray::getSensorData();
39  // delay(1000);
40 }
The Box Controll class contains the FSM for the BoxLevel.
void loop()
Definition: main.cpp:35
The Box Controll class contains the FSM for the complete Box.
Definition: BoxCtrl.h:30
void setup()
Definition: main.cpp:25
#define DBFUNCCALLln(x)
void loop()
Calls the do-function of the active state and hence generates Events.
Definition: BoxCtrl.cpp:29
BoxCtrl * boxctrl
Instance of BoxCtrl.
Definition: main.cpp:21