|
Aquarium Cooling Controller
ESP32 firmware for aquarium cooling fan control, monitoring, telemetry, and fault handling.
|
Measured fan PWM-to-RPM curve and plausibility helpers. More...
#include <Arduino.h>

Go to the source code of this file.
Classes | |
| struct | FanCurvePoint |
| One measured point in the fan curve. More... | |
Namespaces | |
| namespace | FanCurve |
| Fan characterization table and interpolation helpers. | |
Functions | |
| size_t | FanCurve::pointCount () |
| Returns the number of measured fan-curve points. | |
| const FanCurvePoint * | FanCurve::points () |
| Returns the measured fan-curve table. | |
| uint16_t | FanCurve::expectedRpmForPwm (uint8_t pwmPercent) |
| Interpolates the expected RPM for a PWM command. | |
| uint16_t | FanCurve::rpmToleranceForExpected (uint16_t expectedRpm) |
| Calculates the tolerated RPM deviation for an expected speed. | |
| bool | FanCurve::isPlausibilityRegion (uint8_t pwmPercent) |
| Checks whether a PWM command is high enough for RPM plausibility checks. | |
Measured fan PWM-to-RPM curve and plausibility helpers.
The curve represents the production fan used by the controller. It is shared by diagnostics and fault detection so expected RPM values are calculated from the same measured data that is shown over serial output.