Feature #747
Implement stats
Beginn:
23.03.2026
Abgabedatum:
% erledigt:
0%
Geschätzter Aufwand:
CS Zielversion:
Beschreibung
CStats
class CClass
{
public:
char d[0];
constexpr inline void _dummy() noexcept {};
};
//#define dummy() dummy()
//#define dummy() _dummy()
#define dummy() d[0]
static_assert( sizeof(CClass) == 0 );
statsSetMinMax(value);
statsCounterInc();
statsMin();
statsMax();
Combinig it with an monitoring class.
Alert on min/max values.
CANBuz can listen on alerts.
- Log as normal object; via log code the severity/coming/going is part of single log code.
- Alert as function code along with value
- Reserved byte to indicate out-of-range
Bei mehreren fehlern geht information verloren wenn cordyceps nicht läuft.