MRAS
Multi Rocket Avionics System
|
A subsystem that logs SystemMessages using its log() function, for Simulink. More...
#include <SimulinkDataLogger.h>
Public Member Functions | |
int8_t | setup () override |
int8_t | loop () override |
void | on_message (SystemMessage *msg) override |
Subsystem (uint8_t id) | |
Public Member Functions inherited from Subsystem | |
virtual const char * | get_name ()=0 |
virtual int8_t | setup ()=0 |
virtual int8_t | loop ()=0 |
uint8_t | get_id () const |
int8_t | get_status () const |
int8_t | self_test () const |
bool | add_subscriber (Subsystem *subscriber) |
Subsystem (uint8_t id) | |
Static Public Member Functions | |
static float | getFloat () |
Additional Inherited Members | |
Protected Member Functions inherited from Subsystem | |
void | log (const char fmt[],...) |
virtual void | on_message (SystemMessage *msg)=0 |
void | publish (SystemMessage *msg) |
Static Protected Member Functions inherited from Subsystem | |
static void | buzzer (uint16_t frequency, uint32_t duration, bool block=false) |
Protected Attributes inherited from Subsystem | |
int8_t | status = 0 |
int8_t | self_test_result = -1 |
A subsystem that logs SystemMessages using its log() function, for Simulink.
|
overridevirtual |
Implements Subsystem.
|
overridevirtual |
Can be overridden by Subsystems to handle messages
msg | The SystemMessage sent by the Publishing Subsystem |
Implements Subsystem.
|
overridevirtual |
Implements Subsystem.
|
inlineexplicit |
Constructor for Subsystem
id | The unique ID of the subsystem. This must be different for all subsystems. |