Projekt

Allgemein

Profil

Feature #747

Von Maximilian Seesslen vor 15 Tagen aktualisiert

<pre>
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();

</pre>

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.

Zurück