mirror of
https://github.com/BotChain-Robots/flatbuffers.git
synced 2026-07-08 09:37:21 +02:00
Cleanup for release
This commit is contained in:
21
Messaging/TopologyMessage.fbs
Normal file
21
Messaging/TopologyMessage.fbs
Normal file
@@ -0,0 +1,21 @@
|
||||
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;
|
||||
Reference in New Issue
Block a user