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()
21
BoxCtrl
*
boxctrl
;
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
}
BoxCtrl.h
The Box Controll class contains the FSM for the BoxLevel.
loop
void loop()
Definition:
main.cpp:35
BoxCtrl
The Box Controll class contains the FSM for the complete Box.
Definition:
BoxCtrl.h:30
setup
void setup()
Definition:
main.cpp:25
DBFUNCCALLln
#define DBFUNCCALLln(x)
Definition:
LogConfiguration.h:116
BoxCtrl::loop
void loop()
Calls the do-function of the active state and hence generates Events.
Definition:
BoxCtrl.cpp:29
boxctrl
BoxCtrl * boxctrl
Instance of BoxCtrl.
Definition:
main.cpp:21
src
main.cpp
Generated by
1.8.15