|
Humidistat
Arduino firmware for a humidistat (humidity controller)
|
'Runs' a setpoint profile. More...
#include <SetpointProfileRunner.h>
Public Member Functions | |
| SetpointProfileRunner (Humidistat *humidistat) | |
| Constructor. | |
| void | toggle () |
| Toggle the run state. | |
| void | setProfile (const etl::span< const Point > &profile) |
| Set the profile. | |
| void | update () |
| Run the profile (if running). Call this periodically. | |
| bool | isRunning () const |
| Get the run state. | |
| size_t | getCurrentPoint () const |
| Get the index of the current Point in the profile. | |
Private Attributes | |
| Humidistat & | humidistat |
| etl::span< const Point > | profile |
| uint32_t | timeStart |
| bool | running = false |
'Runs' a setpoint profile.
Definition at line 10 of file SetpointProfileRunner.h.
|
explicit |
Constructor.
| humidistat | Pointer to a Humidistat instance |
Definition at line 3 of file SetpointProfileRunner.cpp.
|
nodiscard |
Get the index of the current Point in the profile.
Definition at line 32 of file SetpointProfileRunner.cpp.
|
nodiscard |
Get the run state.
Definition at line 28 of file SetpointProfileRunner.cpp.
| void SetpointProfileRunner::setProfile | ( | const etl::span< const Point > & | profile | ) |
Set the profile.
| profile | Span over Points |
Definition at line 24 of file SetpointProfileRunner.cpp.
| void SetpointProfileRunner::toggle | ( | ) |
Toggle the run state.
Definition at line 19 of file SetpointProfileRunner.cpp.
| void SetpointProfileRunner::update | ( | ) |
Run the profile (if running). Call this periodically.
Definition at line 6 of file SetpointProfileRunner.cpp.
|
private |
Definition at line 12 of file SetpointProfileRunner.h.
|
private |
Definition at line 13 of file SetpointProfileRunner.h.
|
private |
Definition at line 15 of file SetpointProfileRunner.h.
|
private |
Definition at line 14 of file SetpointProfileRunner.h.