How does "struct PacketMotionData" work? #62
Unanswered
jules-deponte
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Good afternoon ladies and gents.
I am trying to build a Python script to process the data coming in from F1 2021. The
struct PacketHeader
andstruct CarMotionData
UDP specifications work nicely. But I don't understand how thestruct PacketMotionData
works. Is this part of the Motion Data packet (with Index 0 in the Packet Header)? If so, how do you access/unpack it?For the moment, I am creating Python lists of each of the fields, just to investigate what they look like. Like I said, for the
CarMotionData
, this works well. In the code below,d
is a single packet; indexed from position 24 (which is just after the header). Doing the same thing as the code below for thePacketMotionData
does not work. Any help will be appreciated. Thank you.Beta Was this translation helpful? Give feedback.
All reactions