Struct VehicleTelemetry
- Namespace
- rF2SharedMemoryNet.RF2Data.Structs
- Assembly
- rF2SharedMemoryNet.dll
Represents telemetry data for a vehicle in rFactor 2, including positional, orientation, vehicle status, driver input, aerodynamics, and other detailed metrics.
public struct VehicleTelemetry
- Inherited Members
Remarks
This structure provides comprehensive telemetry information for a vehicle in rFactor 2, including real-time data such as position, velocity, acceleration, engine status, driver inputs, and aerodynamic properties. It is designed for use in applications that require detailed simulation data, such as telemetry analysis tools or custom plugins. Many fields in this structure represent instantaneous values, such as engine RPM, throttle input, and aerodynamic forces. Some fields, such as lap time and impact data, provide historical context for the current state of the vehicle. Note that certain fields, such as arrays for vehicle and track names, are encoded as byte arrays and may require conversion to strings for human-readable use. Additionally, some fields, such as orientation matrices, require specialized handling for interpretation.
Fields
AntiStallActivated
Anti-stall activated status.
public byte AntiStallActivated
Field Value
BatteryChargeFraction
Battery charge fraction.
public double BatteryChargeFraction
Field Value
ClutchRPM
Clutch RPM
public double ClutchRPM
Field Value
CurrentSector
Represents the current sector of the track, with the pitlane status stored in the sign bit.
public int CurrentSector
Field Value
Remarks
The value is zero-based, where the least significant bits indicate the sector number.
If the sign bit is set, the value represents the pitlane status. For example, entering the pitlane from the
third sector would result in a value of 0x80000002
.
DeltaTime
Time since the last update in seconds.
public double DeltaTime
Field Value
DentSeverity
Represents the severity of dents at eight locations around the car.
public byte[] DentSeverity
Field Value
- byte[]
Remarks
See DentSeverity for the possible values.
Detached
Any parts besides wheels have been detached.
public byte Detached
Field Value
Drag
Drag coefficient.
public double Drag
Field Value
ElapsedTime
Game session time in seconds.
public double ElapsedTime
Field Value
ElectricBoostMotorRPM
RPM of the electric boost motor.
public double ElectricBoostMotorRPM
Field Value
ElectricBoostMotorState
Electric boost motor state.
public byte ElectricBoostMotorState
Field Value
Remarks
See BoostMotorState for the possible values.
ElectricBoostMotorTemperature
Temperature of the electric boost motor.
public double ElectricBoostMotorTemperature
Field Value
ElectricBoostMotorTorque
Torque of the boost motor.
public double ElectricBoostMotorTorque
Field Value
Remarks
Negative values indicate regenerative braking.
ElectricBoostWaterTemperature
Current water temperature of the electric boost motor cooler if present.
public double ElectricBoostWaterTemperature
Field Value
EngineMaxRPM
Max engine RPM.
public double EngineMaxRPM
Field Value
EngineOilTemp
Engine oil temperature in celsius.
public double EngineOilTemp
Field Value
EngineRPM
Represents the current revolutions per minute (RPM) of the engine.
public double EngineRPM
Field Value
EngineTorque
Current engine torque, including any additive torque.
public double EngineTorque
Field Value
EngineWaterTemp
Engine water temp in celsius.
public double EngineWaterTemp
Field Value
Expansion
For future use.
public byte[] Expansion
Field Value
- byte[]
FilteredBrake
ABS filtered brake
public double FilteredBrake
Field Value
FilteredClutch
Filtered clutch
public double FilteredClutch
Field Value
FilteredSteering
Filtered steering
public double FilteredSteering
Field Value
FilteredThrottle
TC filtered throttle
public double FilteredThrottle
Field Value
Front3rdDeflection
Represents the deflection at the front third spring.
public double Front3rdDeflection
Field Value
FrontDownforce
Front downforce
public double FrontDownforce
Field Value
FrontFlapActivated
Indicates whether the front flap is activated.
public byte FrontFlapActivated
Field Value
FrontRideHeight
Front ride height
public double FrontRideHeight
Field Value
FrontTyreCompoundIndex
Front tyre compound index
public byte FrontTyreCompoundIndex
Field Value
FrontTyreCompoundName
Front tyre compound name.
public byte[] FrontTyreCompoundName
Field Value
- byte[]
Remarks
Stored as a byte array of size 18.
FrontWingHeight
Front wing height
public double FrontWingHeight
Field Value
Fuel
Fuel level in liters.
public double Fuel
Field Value
FuelCapacity
Fuel capacity in liters.
public double FuelCapacity
Field Value
Gear
Gear information
public int Gear
Field Value
Remarks
-1 indicates reverse gear, 0 indicates neutral, and positive values indicate forward gears.
Headlights
Headlights are on.
public byte Headlights
Field Value
ID
Identifier for the telemetry slot.
public int ID
Field Value
IgnitionStarter
Igninition and starter status.
public byte IgnitionStarter
Field Value
Remarks
See IgnitionStarterStatus for the possible values.
LapNumber
Current lap number.
public int LapNumber
Field Value
LapStartTime
Time this las was started
public double LapStartTime
Field Value
LastImpactMagnitude
Magnitude of the last impact.
public double LastImpactMagnitude
Field Value
LastImpactPosition
Location of last impact
public Vec3 LastImpactPosition
Field Value
LastImpactTime
Time of last impact.
public double LastImpactTime
Field Value
LocalAcceleration
Acceleration (meters/sec^2) in local vehicle coordinates
public Vec3 LocalAcceleration
Field Value
LocalRotationalAcceleration
Rotational acceleration (radians/sec^2) in local vehicle coordinates
public Vec3 LocalRotationalAcceleration
Field Value
LocalRotationalSpeed
Rotation (radians/sec) in local vehicle coordinates
public Vec3 LocalRotationalSpeed
Field Value
LocalVelocity
Velocity in world coordinates (meters/sec)
public Vec3 LocalVelocity
Field Value
MaxGears
Represents the maximum number of forward gears available.
public byte MaxGears
Field Value
Orientation
rows of orientation matrix
public Vec3[] Orientation
Field Value
- Vec3[]
Overheating
Overheating icon is shown.
public byte Overheating
Field Value
PhysicalSteeringWheelRange
Represents the physical range of the steering wheel in degrees.
public float PhysicalSteeringWheelRange
Field Value
PhysicsToGraphicsOffset
Represents the offset from the static center of gravity (CG) to the graphical center.
public float[] PhysicsToGraphicsOffset
Field Value
- float[]
Position
World position in meters
public Vec3 Position
Field Value
Rear3rdDeflection
Represents the deflection at the rear third spring.
public double Rear3rdDeflection
Field Value
RearBrakeBias
Rear brake bias fraction.
public double RearBrakeBias
Field Value
RearDownforce
Rear downforce
public double RearDownforce
Field Value
RearFlapActivated
Indicates whether the rear flap is activated.
public byte RearFlapActivated
Field Value
RearFlapLegalStatus
Rear flap legal status.
public byte RearFlapLegalStatus
Field Value
Remarks
See RearFlapLegalStatus for the possible values.
RearRideHeight
Rear ride height
public double RearRideHeight
Field Value
RearTyreCompoundIndex
Rear tyre compound inde
public byte RearTyreCompoundIndex
Field Value
RearTyreCompoundName
Rear tyre compound name.
public byte[] RearTyreCompoundName
Field Value
- byte[]
Remarks
Stored as a byte array of size 18.
ScheduledStops
Number of scheduled pit stops.
public byte ScheduledStops
Field Value
SpeedLimiter
Indicates whether the speed limiter is enabled.
public byte SpeedLimiter
Field Value
SpeedLimiterAvailable
Is speed limiter available.
public byte SpeedLimiterAvailable
Field Value
SteeringShaftTorque
Torque around the steering shaft.
public double SteeringShaftTorque
Field Value
TrackName
Name of track
public byte[] TrackName
Field Value
- byte[]
Remarks
Stored as a byte array of size 64.
TurboBoostPressure
Curren turbo boost pressure if available.
public double TurboBoostPressure
Field Value
UnfilteredBrake
Unfiltered brake
public double UnfilteredBrake
Field Value
UnfilteredClutch
Unfiltered clutch
public double UnfilteredClutch
Field Value
UnfilteredSteering
Unfiltered steering
public double UnfilteredSteering
Field Value
UnfilteredThrottle
Unfiltered throttle
public double UnfilteredThrottle
Field Value
Unused
Unused
public byte[] Unused
Field Value
- byte[]
VehicleName
Vehicle name
public byte[] VehicleName
Field Value
- byte[]
Remarks
Stored as a byte array of size 64.
VisualSteeringWheelRange
Visual steering wheel range.
public float VisualSteeringWheelRange
Field Value
Wheels
Wheel information.
public Wheel[] Wheels
Field Value
- Wheel[]
Remarks
Layout is as follows: front left, front right, rear left, rear right.