Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public struct TelemetryPacket
- {
- public float Time;
- public float LapTime;
- public float LapDistance;
- public float Distance;
- public float X;
- public float Y;
- public float Z;
- public float Speed;
- public float WorldSpeedX;
- public float WorldSpeedY;
- public float WorldSpeedZ;
- public float XR;
- public float Roll;
- public float ZR;
- public float XD;
- public float YD;
- public float ZD;
- public float SuspensionPositionRearLeft;
- public float SuspensionPositionRearRight;
- public float SuspensionPositionFrontLeft;
- public float SuspensionPositionFrontRight;
- public float SuspensionVelocityRearLeft;
- public float SuspensionVelocityRearRight;
- public float SuspensionVelocityFrontLeft;
- public float SuspensionVelocityFrontRight;
- [JsonProperty("WheelSpeedReadLeft")]
- public float WheelSpeedRearLeft;
- public float WheelSpeedRearRight;
- public float WheelSpeedFrontLeft;
- public float WheelSpeedFrontRight;
- public float Throttle;
- public float Steer;
- public float Brake;
- public float Clutch;
- public float Gear;
- public float LateralAcceleration;
- public float LongitudinalAcceleration;
- public float Lap;
- public float EngineRevs;
- /* New Fields in Patch 12 */
- public float SliProNativeSupport; // Always 1?
- public float RacePosition; // Position in race
- public float KersRemaining; // Kers Remaining
- public float KersMaxLevel; // Always 400000?
- public float DrsStatus; // 0 = off, 1 = on
- public float TractionControl; // 0 (off) - 2 (high)
- public float AntiLock; // 0 = All assists are off. 1 = some assist is on.
- public float FuelRemaining; // Not sure if laps or Litres?
- public float FuelCapacity; // 9.5 = race, 10 = time trail / time attack, 170 = quali, practice, championsmode
- public float InPits; // 0 = none, 1 = pitting, 2 = in pit area
- public float Sector; // 0 = sector1, 1 = sector2; 2 = sector3
- public float TimeSector1; // Time Intermediate 1
- public float TimeSector2; // Time Intermediate 2
- public float BrakeTemperatureRearLeft; // brakes temperature (centigrade)
- public float BrakeTemperatureRearRight; // brakes temperature (centigrade)
- public float BrakeTemperatureFrontLeft; // brakes temperature (centigrade)
- public float BrakeTemperatureFrontRight; // brakes temperature (centigrade)
- public float WheelPressureRearLeft; // wheels pressure PSI
- public float WheelPressureRearRight;// wheels pressure PSI
- public float WheelPressureFrontLeft; // wheels pressure PSI
- public float WheelPressureFrontRight; // wheels pressure PSI
- public float CompletedLapsInRace; // Number of laps Completed (in GP only)
- public float TotalLapsInRace; // Number of laps in GP (GP only)
- public float TrackLength; // Track Length
- public float PreviousLapTime; // Lap time of previous lap
- public float MaxRpm; // Always 0?
- public float IdleRpm; // Always 0?
- public float MaxGears; // Always 0?
- public float SessionType; // 0 = unknown, 1 = practice, 2 = qualifying, 3 = race
- public float DrsAllowed; // 0 = not allowed, 1 = allowed, -1 = invalid / unknown
- public float TrackNumber; // -1 for unknown, 0-21 for tracks
- public float FIAFlags; // -1 = invalid/unknown, 0 = none, 1 = green, 2 = blue, 3 = yellow, 4 = red
- }
Add Comment
Please, Sign In to add comment