ProtoCore v0.0.1
Deterministic, zero-heap network stack for embedded targets
Loading...
Searching...
No Matches
telemetry.h File Reference

Zero-heap telemetry math helpers (PC_ENABLE_TELEMETRY). More...

#include "protocore_config.h"
#include <stdint.h>

Go to the source code of this file.

Detailed Description

Zero-heap telemetry math helpers (PC_ENABLE_TELEMETRY).

Pure-computation building blocks for turning a stream of sensor samples into dashboard figures, alert triggers, and odometer-style totals - no heap, no Arduino dependency, all state in caller-supplied storage or small POD structs, so the whole cluster unit-tests on the host:

  • pc_window moving-window statistics (mean / variance / stddev / min / max) over a caller-provided ring buffer, O(1) mean/variance via running sums.
  • pc_rate derivative / rate-of-change between successive samples (units per second), for slope alerts.
  • pc_totalizer trapezoidal integration of a rate over time (a running total / odometer).
Author
Douglas Quigg (dstroy0)
Date
2026

Definition in file telemetry.h.