Aquarium Cooling Controller
ESP32 firmware for aquarium cooling fan control, monitoring, telemetry, and fault handling.
Loading...
Searching...
No Matches
Public Attributes | List of all members
ControlSnapshot Struct Reference

Complete result of one control calculation. More...

#include <control_engine.h>

Public Attributes

float targetTemperatureC
 Effective target water temperature in degrees Celsius.
 
bool targetDefaulted
 True when the default target replaced an invalid request.
 
bool waterSensorValid
 True when the water temperature value is usable.
 
float waterTemperatureC
 Effective water temperature, or NAN when invalid.
 
float waterDeltaC
 Water temperature minus target temperature.
 
uint8_t waterBasedPwmPercent
 PWM requested by water-temperature hysteresis control.
 
uint8_t finalPwmPercent
 Final commanded fan PWM percentage.
 
ControlMode mode
 Selected control mode.
 

Detailed Description

Complete result of one control calculation.

The snapshot preserves both the final output and the intermediate values used to reach it. Keeping those values together makes serial diagnostics and MQTT telemetry explain the control decision without recalculating it elsewhere.


The documentation for this struct was generated from the following file: