No Session data in the UDP feed
Opened this issue · 2 comments
Hi
I just tested the Java based example.
Got it working quite easily.
But when testing (with 0.1.0.2831), I hit these issues:
- There is no Session data coming from the UDP feed. I tried all other modes, except the online race.
- If you enable the CKAS feed, the example breaks. (Easy to work around, if you know CKAS data format and how to detect that).
Is there supposed to be the Session data in the latest version's UDP feed in single player mode?
I would expect it to be sent out each time with the motion/dashboard packets, as there are the coordinates + the spline position.
Also maybe you could add track length to the TrackConfig packet, if possible.
Cheers.
- You're right there is no session data being sent yet. The telemetry is due an update so I'll try and include this in the next version.
- I'll take a look at that, thanks for letting us know.
- I'll add track length too, cheers.
As CKAS is a comma separated string vector with 27 (9x3) values, I added to your Java example this little fix to enable my testing:
String CKA = new String(Arrays.copyOfRange(packet.getData(), packet.getOffset(), packet.getLength()));
String[] testArr = CKA.split(",");
if (testArr.length == 27) {
// CKA stuff here
} else {
// Do the FlatBuffers stuff
}
This quick solution breaks, if by any change the FlatBuffer content can be split with commas into 27 items.