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
FaultMonitorSnapshot Struct Reference

Diagnostic result from one fan fault-monitor evaluation. More...

#include <fault_monitor.h>

Public Attributes

uint8_t commandedPwmPercent
 Current fan PWM command in percent.
 
uint16_t measuredRpm
 Latest measured fan speed.
 
uint16_t expectedRpm
 Expected RPM from the fan curve.
 
uint16_t toleranceRpm
 Allowed absolute RPM deviation.
 
int16_t rpmError
 Measured RPM minus expected RPM.
 
bool plausibilityActive
 True when the PWM and settling delay allow checking.
 
bool plausible
 True when measured RPM is inside tolerance.
 
bool faultLatched
 True while the monitor has latched a fan fault.
 
uint8_t mismatchCount
 Consecutive implausible sample count.
 
uint8_t matchCount
 Consecutive plausible sample count while recovering.
 
uint32_t elapsedSincePwmChangeMs
 Elapsed time since the PWM command changed.
 

Detailed Description

Diagnostic result from one fan fault-monitor evaluation.

This snapshot is designed for both telemetry and policy decisions. It exposes the raw RPM comparison, counter state, and latch state so a user can see whether a fan alarm is caused by an active mismatch or by a fault that is still recovering.


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