Serial telemetry. More...
#include <serial.h>
Public Member Functions | |
| SerialComms (HardwareSerial &port, long int baud) | |
| void | Init () |
| perform your initialization here | |
| virtual void | Loop (const unsigned long &interval) |
| The module's main loop. | |
Serial telemetry.
This is the main communication with the config program. You can have more than one instance of this module.
For instance you may have one for fast USB comms and one for a low speed radio modem
Sockets exposed:
external sockets expected:
| SerialComms::SerialComms | ( | HardwareSerial & | port, | |
| long int | baud | |||
| ) | [inline] |
| void SerialComms::Init | ( | ) | [inline, virtual] |
perform your initialization here
This includes connecting plugs and general initialization
Reimplemented from Module.
| virtual void SerialComms::Loop | ( | const unsigned long & | interval | ) | [inline, virtual] |
The module's main loop.
This function is called at the rate specified by SetInterval()
Do most of your work here. Try to keep this code fast
Reimplemented from Module.
1.7.0