![]() |
WarpTwin
Documentation for WarpTwin models and classes.
|
Holds the setup configuration for Flight Executive. More...
#include <Setup.h>
Public Member Functions | |
| Setup (OS &os, Platform &platform) | |
| virtual | ~Setup () |
| virtual int16 | initTelemetryBuffer () |
| Initialize the telemetry buffer. | |
| virtual int16 | writeTelemetry (uint8 target, uint8 *data, uint16 size) |
| Write data to telemetry buffer. | |
| virtual int16 | initCommandBuffer () |
| Initialize the command buffer. | |
| virtual uint32 | readCommand (uint8 target, uint8 *data, uint32 max_size) |
| Read data from the command buffer. | |
| virtual uint32 | initStorageBuffer () |
| Initialize the storage buffer. | |
| virtual int16 | writeStorage (uint8 target, const char *data, uint32 size) |
| Write data to storage buffer. | |
| OS & | os () |
| Get a handle to the current OS. | |
| Platform & | platform () |
| Get a handle to the current platform. | |
Protected Attributes | |
| OS & | _os |
| Reference to the system OS. | |
| Platform & | _platform |
| Reference to the sytem hardware. | |
Holds the setup configuration for Flight Executive.
The Setup class manages a set of base-level functionality, such as writing telemetry, reading commands, etc. which are often hardware or low-level functions. It allows users to specify which buffers are written for telementry, for instance.
|
inlinevirtual |
|
inlinevirtual |
Initialize the command buffer.
|
inlinevirtual |
Initialize the storage buffer.
|
inlinevirtual |
Initialize the telemetry buffer.
|
inline |
Get a handle to the current platform.
|
inlinevirtual |
Read data from the command buffer.
| target | Device selection indicator. May be unused if command only has one source |
| data | Pointer to the byte array to read |
| max_size | The maximum amount of data to read out of the buffer |
|
inlinevirtual |
Write data to storage buffer.
| target | Device selection indicator. May be unused if storage only has one output |
| data | Pointer to the byte array to write |
| size | Size of the buffer pointed to by data |
|
inlinevirtual |
Write data to telemetry buffer.
| target | Device selection indicator. May be unused if telemetry only has one output |
| data | Pointer to the byte array to write |
| size | Size of the buffer pointed to by data |
|
protected |
Reference to the sytem hardware.