PDA

View Full Version : Problem in current UDP definition file



arklay
11-07-2018, 09:37
In telemetry data it is written:


struct sTelemetryData
{
static const unsigned int sPacketSize = 559;
PacketBase sBase; // 0 12
// Participant info
[...]

// Car damage
unsigned char sAeroDamage; // 371 1
unsigned char sEngineDamage; // 372 1
// HW state
unsigned int sJoyPad0; // 376 4
unsigned char sDPad; // 377 1
char sTyreCompound[4][TYRE_NAME_LENGTH_MAX]; // 378 160
float sTurboBoostPressure; // 538 4
float sFullPosition[3]; // 542 12
unsigned char sBrakeBias; // 554 1 -- quantized brake bias
unsigned int sTickCount; // 555
};


According to this:
- sEngineDamage is a byte in position 372, but sJoyPad0 starts 4 bytes later...
- sJoyPad0 is a unsigned integer in position 376, but sDPad is located in position 377

Sampo
11-07-2018, 16:59
I guess sJoyPad0 starts at 373 and is 4 bytes long. I haven't checked this though.