Projekt

Allgemein

Profil

Feature #308

Von Maximilian Seesslen vor etwa 2 Jahren aktualisiert

There is the "trouble" function implemented for sensemux.
It should be integrated to an heartbeat class.

* good (double)
* crytical error (fast blink)
* fatal error (slow blink)
* temporary error/ trouble (fast blink - off 1Hz) (goes away)

There are weak waek c functions:
* trouble()
* critical()
* fatal()

Usecases:
* invalid eeprom causes "critical"-state
* Not being able to sen CAN messages causes "trouble"
* fatal: the application can not run for some reason but the led should work; e.g. a reception buffer is full
* exception: Don't even try to run any more. e.g. memory error.

Zurück