|
TinyRobotics
|
Generic message structure for communication, parameterized by value type. More...
#include <Message.h>
Public Member Functions | |
| Message ()=default | |
| Default constructor. | |
| Message (MessageContent c, T v, Unit u) | |
| Construct a message with content, value, and unit. | |
| Message (MessageContent c, T v, Unit u, MessageOrigin orig) | |
Public Attributes | |
| const char * | prefix = "MSG" |
| prefix for message identification | |
| uint8_t | size = sizeof(Message) |
| MessageOrigin | origin |
| uint8_t | origin_id |
| MessageContent | content |
| Optional identifier for the source (e.g., sensor ID, motor ID) | |
| Unit | unit |
| Unit of the value. | |
| T | value {} |
| Value of the message. | |
Generic message structure for communication, parameterized by value type.
| T | Type of the value (default: float) |
Construct a message with content, value, and unit.
| c | Message content type |
| v | Value |
| u | Unit |
| MessageContent content |
Optional identifier for the source (e.g., sensor ID, motor ID)
Type of message content.
| MessageOrigin origin |
Source of the message.
| uint8_t origin_id |