Client Sync Packet - Saint-Francis-Robotics-Team2367/yunServerSoftware GitHub Wiki
Sample Datagram:
- player connections
- joystick connected
- joystick values (includes 6 16-bit signed integers for left/right sticks and two triggers, and one unsigned 16-bit integer for all buttons)
- robot name
- local game time
Sample
Datagram (note: datagram contains no line breaks) -
"gmd:180# P1:Rook:1:1:2000:2000:2000:2000:2000:2000:20000; P2:Bishop:1:0:100:100:100:100:100:100:1000; P3:Knight:1:1:1089:1089:1089:1089:1089:1089:10890; P4:Pawn:1:0:800:800:800:800:800:800:8000; P5:Queen:1:1:3000:3000:3000:3000:3000:3000:30000; P6:NoName:0:0:900:900:900:900:900:900:9000;"
Format: "Signature:GameTime#PlayerNumber:RobotName:RobotConnection:JoystickConnection:LeftThumbXVal:LeftThumbYVal:RightThumbXVal:RightThumbYVal:LeftTriggerVal:RightTriggerVal:ButtonsVal;..."
- LeftThumbXVal, LeftThumbYVal, RightThumbXVal, RightThumbYVal, LeftTriggerVal, and RightTriggerVal are all signed 16-bit integers
- ButtonsVal is an unsigned 16-bit integer