MRAS
Multi Rocket Avionics System
Loading...
Searching...
No Matches
NativeTextLogger Class Reference

A TextLogger that is compatible with the Native MRAS build environment. More...

#include <NativeTextLogger.h>

Inheritance diagram for NativeTextLogger:
Inheritance graph
Collaboration diagram for NativeTextLogger:
Collaboration graph

Public Member Functions

 NativeTextLogger (uint8_t id)
 
void _log (const char *fmt, va_list args) override
 Log a message to the console.
 
int8_t setup () override
 
int8_t loop () override
 
const char * get_name () override
 
- Public Member Functions inherited from TextLogger
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 TextLogger that is compatible with the Native MRAS build environment.

In the native build environment, we can use printf to log to the console

Member Function Documentation

◆ _log()

void NativeTextLogger::_log ( const char *  fmt,
va_list  args 
)
overridevirtual

Log a message to the console.

Parameters
fmtThe format string
argsThe arguments to the format string

Implements TextLogger.

◆ get_name()

const char * NativeTextLogger::get_name ( )
inlineoverridevirtual

Get the name of the subsystem, used for logging purposes

Returns
Unique name for the subsystem, such as "Accelerometer"

Implements Subsystem.

◆ loop()

int8_t NativeTextLogger::loop ( )
inlineoverridevirtual

Implements Subsystem.

◆ setup()

int8_t NativeTextLogger::setup ( )
inlineoverridevirtual

Implements Subsystem.


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