Added gyroscope thing
This commit is contained in:
parent
6d58b741e1
commit
05d4a2acd9
@ -35,6 +35,7 @@ namespace RoboidControl {
|
||||
/// <param name="networkId">The network ID of the thing</param>
|
||||
/// <param name="thing">The thing</param>
|
||||
public ThingMsg(byte networkId, Thing thing) {
|
||||
System.Console.Write($"ThingMsg [{networkId}/{thing.id}] {thing.type}");
|
||||
this.networkId = networkId;
|
||||
this.thingId = thing.id;
|
||||
this.thingType = thing.type;
|
||||
@ -83,6 +84,7 @@ namespace RoboidControl {
|
||||
buffer[ix++] = this.thingId;
|
||||
buffer[ix++] = this.thingType;
|
||||
buffer[ix++] = this.parentId;
|
||||
System.Console.Write("ThingMsg sent");
|
||||
return ThingMsg.length;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user