MRAS
Multi Rocket Avionics System
Loading...
Searching...
No Matches
TextLogger Class Referenceabstract

A base class for ArduinoTextLogger and NativeTextLogger. More...

#include <TextLogger.h>

Inheritance diagram for TextLogger:
Inheritance graph
Collaboration diagram for TextLogger:
Collaboration graph

Public Member Functions

virtual SUBSYSTEM_NO_MESSAGE_HANDLER void _log (const char *fmt, va_list args)=0
 
 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)
 

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
 

Detailed Description

A base class for ArduinoTextLogger and NativeTextLogger.

This class is used to provide a common interface for both ArduinoTextLogger and NativeTextLogger. This allows either TextLogger to be used in the same way by MRAS and its Subsystems.

Member Function Documentation

◆ _log()

virtual SUBSYSTEM_NO_MESSAGE_HANDLER void TextLogger::_log ( const char *  fmt,
va_list  args 
)
pure virtual

Implemented in NativeTextLogger, and ArduinoTextLogger.

◆ Subsystem()

Subsystem::Subsystem ( uint8_t  id)
inlineexplicit

Constructor for Subsystem

Parameters
idThe unique ID of the subsystem. This must be different for all subsystems.

The documentation for this class was generated from the following file: