![]() |
QPIDfirmware
v0.1
Object oriented firmware for autonomous motor drivers with encoder based PID controller and flexible interface
|
Base class for all QPID classes. Establishes interface for message processing and provides error reporting and logging functions. More...

Public Member Functions | |
| virtual void | update () |
| (abstract) Can be overridden by QPID subsystems which need to do their own polling. Will be called by QPID_Unit::update() for subsystems, and by firmware/client for QPID_Unit itself. | |
| void | throwError (const char *invokedBy, const char *errorMessage) |
| Writes error message and error invoking class to Serial. More... | |
| void | log (const char *logEntry) |
| Puts timestamped string into the system log (atm: writes it out to Serial). More... | |
Protected Member Functions | |
| QPID_Object () | |
| Constructor. Begins Serial with 115200 baud for logging and error reporting, if not done previously. | |
| virtual bool | processMessage (uint8_t *message) |
| (abstract) Interprets message handed down from QPID_Unit locally. Must be overridden in derived classes | |
Base class for all QPID classes. Establishes interface for message processing and provides error reporting and logging functions.
| void QPID_Object::throwError | ( | const char * | invokedBy, |
| const char * | errorMessage | ||
| ) |
Writes error message and error invoking class to Serial.
| invokedBy | A string of the class and/or function which invoked the error. |
| errorMessage | A string describing the error. |
| void QPID_Object::log | ( | const char * | logEntry | ) |
Puts timestamped string into the system log (atm: writes it out to Serial).