How does the frame identifier and session time work in the header packet?
If I have a load of Motion Data packets, how can they be ordered correctly? I presume I'm missing a variable, or maybe it's not actually possible and have to just take it as it arrives.
Here's a mini example (only using one drivers positions), ordered by Session Time in the header
| Session Time | Frame Identifier | Position X / Y / Z |
| 3.867813 | 181 | 232.0837 -76.7756 -68.2224 |
| 3.918861 | 68 | 258.303, -76.78932, -110.066 |
| 3.927231 | 182 | 231.1686, -76.77332, -66.63441 |
| 3.978508 | 69 | 258.3039, -76.78921, -110.0651 |
| 3.985825 | 183 | 230.2413, -76.77075, -65.00995 |
Here's some other data ordered by Frame Identifier
| Frame Identifier | Session Time | Position X / Y / Z |
| 54 | 3.149101 | 258.3048, -76.78924, -110.0643 |
| 55 | 0 | 258.8972, -76.78119, -110.4691 |
| 56 | 0 | 258.9001, -76.78107, -110.4662 |
| 56 | 3.209719 | 258.3057, -76.78911, -110.0633 |
| 58 | 0 | 258.8981, -76.78116, -110.4681 |
| 59 | 0 | 258.8969, -76.78119, -110.4693 |
As you can see the position x, y, z jump depending on what the session time is / frame identifier is.
I'd expect the Z, for example, to be linear and show the path of the car as it happens, but you can probably see it jumps seemingly between two linear lines.
Example console log
packetQueue.packetMotionData.Header.m_frameIdentifier + " - " + packetQueue.packetMotionData.Header.m_sessionTime + ", " + packetQueue.packetMotionData.m_carMotionData[5].m_worldPositionX + ", " + packetQueue.packetMotionData.m_carMotionData[5].m_worldPositionY + ", " + packetQueue.packetMotionData.m_carMotionData[5].m_worldPositionZ