software:firmware
MakAir Firmware
main_state_machine.h
Go to the documentation of this file.
1
8
#pragma once
9
10
#include "../includes/alarm_controller.h"
11
#include "../includes/blower.h"
12
#include "../includes/main_controller.h"
13
#include "../includes/pressure_valve.h"
14
16
class
MainStateMachine
{
17
public
:
19
MainStateMachine
();
20
26
bool
isRunning
();
27
29
void
ScreenUpdate
();
30
32
void
setupAndStart
();
33
34
private
:
36
bool
isMsmActive
;
37
};
38
39
extern
MainStateMachine
mainStateMachine
;
MainStateMachine
Main state machine.
Definition:
main_state_machine.h:16
MainStateMachine::setupAndStart
void setupAndStart()
Run the state machine.
Definition:
main_state_machine.cpp:217
MainStateMachine::MainStateMachine
MainStateMachine()
Default constructor.
Definition:
main_state_machine.cpp:50
MainStateMachine::ScreenUpdate
void ScreenUpdate()
Display information on screen.
Definition:
main_state_machine.cpp:54
MainStateMachine::isRunning
bool isRunning()
Check if the state machine is enabled.
Definition:
main_state_machine.cpp:52
MainStateMachine::isMsmActive
bool isMsmActive
Main state machine activation state.
Definition:
main_state_machine.h:36
mainStateMachine
MainStateMachine mainStateMachine
Definition:
main_state_machine.cpp:32
includes
main_state_machine.h
Generated by
1.9.1