Guest User

CodiesExtradata3Packet

a guest
Nov 12th, 2019
184
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.86 KB | None | 0 0
  1. public struct TelemetryPacket
  2. {
  3. public float Time;
  4. public float LapTime;
  5. public float LapDistance;
  6. public float Distance;
  7.  
  8. public float X;
  9.  
  10. public float Y;
  11.  
  12. public float Z;
  13. public float Speed;
  14.  
  15. public float WorldSpeedX;
  16.  
  17. public float WorldSpeedY;
  18.  
  19. public float WorldSpeedZ;
  20.  
  21. public float XR;
  22.  
  23. public float Roll;
  24.  
  25. public float ZR;
  26.  
  27. public float XD;
  28.  
  29. public float YD;
  30.  
  31. public float ZD;
  32.  
  33. public float SuspensionPositionRearLeft;
  34.  
  35. public float SuspensionPositionRearRight;
  36.  
  37. public float SuspensionPositionFrontLeft;
  38.  
  39. public float SuspensionPositionFrontRight;
  40.  
  41. public float SuspensionVelocityRearLeft;
  42.  
  43. public float SuspensionVelocityRearRight;
  44.  
  45. public float SuspensionVelocityFrontLeft;
  46.  
  47. public float SuspensionVelocityFrontRight;
  48.  
  49. [JsonProperty("WheelSpeedReadLeft")]
  50. public float WheelSpeedRearLeft;
  51.  
  52. public float WheelSpeedRearRight;
  53.  
  54. public float WheelSpeedFrontLeft;
  55.  
  56. public float WheelSpeedFrontRight;
  57.  
  58. public float Throttle;
  59.  
  60. public float Steer;
  61.  
  62. public float Brake;
  63.  
  64. public float Clutch;
  65.  
  66. public float Gear;
  67.  
  68. public float LateralAcceleration;
  69.  
  70. public float LongitudinalAcceleration;
  71.  
  72. public float Lap;
  73.  
  74. public float EngineRevs;
  75.  
  76. /* New Fields in Patch 12 */
  77.  
  78. public float SliProNativeSupport; // Always 1?
  79.  
  80. public float RacePosition; // Position in race
  81.  
  82. public float KersRemaining; // Kers Remaining
  83.  
  84. public float KersMaxLevel; // Always 400000?
  85.  
  86. public float DrsStatus; // 0 = off, 1 = on
  87.  
  88. public float TractionControl; // 0 (off) - 2 (high)
  89.  
  90. public float AntiLock; // 0 = All assists are off. 1 = some assist is on.
  91.  
  92. public float FuelRemaining; // Not sure if laps or Litres?
  93.  
  94. public float FuelCapacity; // 9.5 = race, 10 = time trail / time attack, 170 = quali, practice, championsmode
  95.  
  96. public float InPits; // 0 = none, 1 = pitting, 2 = in pit area
  97.  
  98. public float Sector; // 0 = sector1, 1 = sector2; 2 = sector3
  99.  
  100. public float TimeSector1; // Time Intermediate 1
  101.  
  102. public float TimeSector2; // Time Intermediate 2
  103.  
  104. public float BrakeTemperatureRearLeft; // brakes temperature (centigrade)
  105.  
  106. public float BrakeTemperatureRearRight; // brakes temperature (centigrade)
  107.  
  108. public float BrakeTemperatureFrontLeft; // brakes temperature (centigrade)
  109.  
  110. public float BrakeTemperatureFrontRight; // brakes temperature (centigrade)
  111.  
  112. public float WheelPressureRearLeft; // wheels pressure PSI
  113.  
  114. public float WheelPressureRearRight;// wheels pressure PSI
  115.  
  116. public float WheelPressureFrontLeft; // wheels pressure PSI
  117.  
  118. public float WheelPressureFrontRight; // wheels pressure PSI
  119.  
  120. public float CompletedLapsInRace; // Number of laps Completed (in GP only)
  121.  
  122. public float TotalLapsInRace; // Number of laps in GP (GP only)
  123.  
  124. public float TrackLength; // Track Length
  125.  
  126. public float PreviousLapTime; // Lap time of previous lap
  127.  
  128. public float MaxRpm; // Always 0?
  129.  
  130. public float IdleRpm; // Always 0?
  131.  
  132. public float MaxGears; // Always 0?
  133.  
  134. public float SessionType; // 0 = unknown, 1 = practice, 2 = qualifying, 3 = race
  135.  
  136. public float DrsAllowed; // 0 = not allowed, 1 = allowed, -1 = invalid / unknown
  137.  
  138. public float TrackNumber; // -1 for unknown, 0-21 for tracks
  139.  
  140. public float FIAFlags; // -1 = invalid/unknown, 0 = none, 1 = green, 2 = blue, 3 = yellow, 4 = red
  141.  
  142.  
  143. }
Add Comment
Please, Sign In to add comment