mirror of
https://github.com/BotChain-Robots/flatbuffers.git
synced 2026-07-08 09:37:21 +02:00
22 lines
503 B
Plaintext
22 lines
503 B
Plaintext
include "../RobotModule.fbs";
|
|
|
|
namespace Messaging;
|
|
|
|
enum ConnectionType : byte {
|
|
DIRECT = 0,
|
|
HOP = 1,
|
|
}
|
|
|
|
table TopologyMessage{
|
|
module_id: uint8;
|
|
module_type: ModuleType;
|
|
num_channels: uint8;
|
|
channel_to_module: [uint8]; // index is channel, value is connected board; 0 represents no connection
|
|
channel_to_orientation: [Orientation]; // index is channel, value is orientation
|
|
connection: ConnectionType;
|
|
leader: uint8;
|
|
firmware: string;
|
|
}
|
|
|
|
root_type TopologyMessage;
|