Humidistat
Arduino firmware for a humidistat (humidity controller)
Loading...
Searching...
No Matches
Humidistat.h
Go to the documentation of this file.
1#ifndef HUMIDISTAT_HUMIDISTAT_H
2#define HUMIDISTAT_HUMIDISTAT_H
3
4#include "aliases.h"
5#include "Controller.h"
6#include "EEPROMConfig.h"
7
10class Humidistat : public Controller {
11protected:
12 HumiditySensor &hs;
13
16 void runCycle();
17
18public:
29 Humidistat(const ConfigStore *cs, HumiditySensor *hs, double Kp, double Ki, double Kd, double Kf, uint16_t dt,
30 double cvMin, double cvMax);
31
34 double getHumidity() const;
35
38 double getTemperature() const;
39
40 double getCvMin() const;
41 double getCvMax() const;
42};
43
44
45#endif //HUMIDISTAT_HUMIDISTAT_H
Base class for a controller. Owns a PID instance, and holds a reference to a ConfigStore instance.
Definition Controller.h:11
const ConfigStore & cs
Definition Controller.h:14
Base class for a humidistat. Holds a reference to a HumiditySensor instance.
Definition Humidistat.h:10
double getHumidity() const
Read the humidity.
Definition Humidistat.cpp:7
double getCvMin() const
Humidistat(const ConfigStore *cs, HumiditySensor *hs, double Kp, double Ki, double Kd, double Kf, uint16_t dt, double cvMin, double cvMax)
Constructor.
Definition Humidistat.cpp:3
double getCvMax() const
double getTemperature() const
Read the temperature.
void runCycle()
Run a cycle of the controller. Reads a sample from the humidity controller and runs PID.
HumiditySensor & hs
Definition Humidistat.h:12
Config store containing variables, which can be stored in EEPROM.
Definition EEPROMConfig.h:7