Documentation ¶
Index ¶
- Constants
- type PacketDirtSeries
- func (p *PacketDirtSeries) Brake() float32
- func (p *PacketDirtSeries) Clutch() float32
- func (p *PacketDirtSeries) Gear() int
- func (p *PacketDirtSeries) Handbrake() float32
- func (p *PacketDirtSeries) MaxRPM() float32
- func (p *PacketDirtSeries) RPM() float32
- func (p *PacketDirtSeries) Speed() float32
- func (p *PacketDirtSeries) StageDistance() float32
- func (p *PacketDirtSeries) Steering() float32
- func (p *PacketDirtSeries) Throttle() float32
- func (p *PacketDirtSeries) UnmarshalBinary(b []byte) error
- type PacketEASportsWRC
- func (p *PacketEASportsWRC) Brake() float32
- func (p *PacketEASportsWRC) Clutch() float32
- func (p *PacketEASportsWRC) Gear() int
- func (p *PacketEASportsWRC) Handbrake() float32
- func (p *PacketEASportsWRC) MaxRPM() float32
- func (p *PacketEASportsWRC) RPM() float32
- func (p *PacketEASportsWRC) Speed() float32
- func (p *PacketEASportsWRC) StageDistance() float32
- func (p *PacketEASportsWRC) Steering() float32
- func (p *PacketEASportsWRC) Throttle() float32
- func (p *PacketEASportsWRC) UnmarshalBinary(b []byte) error
- type Telemetry
Constants ¶
View Source
const PacketDirtSeriesLength = 263
View Source
const PacketEASportsWRCLength = 237
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PacketDirtSeries ¶
type PacketDirtSeries struct { Time float32 LapTime float32 LapDistance float32 TotalDistance float32 VehiclePosX float32 // World space position VehiclePosY float32 // World space position VehiclePosZ float32 // World space position VehicleSpeed float32 VehicleVelX float32 // Velocity in world space VehicleVelY float32 // Velocity in world space VehicleVelZ float32 // Velocity in world space VehicleRightDirectionX float32 // World space right direction VehicleRightDirectionY float32 // World space right direction VehicleRightDirectionZ float32 // World space right direction VehicleForwardDirectionX float32 // World space forward direction VehicleForwardDirectionY float32 // World space forward direction VehicleForwardDirectionZ float32 // World space forward direction SuspPosBl float32 SuspPosBr float32 SuspPosFl float32 SuspPosFr float32 SuspVelBl float32 SuspVelBr float32 SuspVelFl float32 SuspVelFr float32 WheelSpeedBl float32 WheelSpeedBr float32 WheelSpeedFl float32 WheelSpeedFr float32 VehicleThrottle float32 VehicleSteering float32 VehicleBrake float32 VehicleClutch float32 VehicleGear float32 GforceLat float32 GforceLon float32 Lap float32 EngineRate float32 //############################################################# unknown start SliProNativeSupport float32 // SLI Pro support CarPosition float32 // car race position KersLevel float32 // kers energy left KersMaxLevel float32 // kers maximum energy Drs float32 // 0 = off, 1 = on TractionControl float32 // 0 (off) - 2 (high) AntiLockBrakes float32 // 0 (off) - 1 (on) FuelInTank float32 // current fuel mass FuelCapacity float32 // fuel capacity InPits float32 // 0 = none, 1 = pitting, 2 = in pit area Sector float32 // 0 = sector1, 1 = sector2 2 = sector3 Sector1Time float32 // time of sector1 (or 0) Sector2Time float32 // time of sector2 (or 0) //############################################################# unknown end BrakesTemp [4]float32 // brakes temperature (centigrade) //############################################################# unknown start WheelsPressure [4]float32 // wheels pressure PSI TeamInfo float32 // team ID //############################################################# unknown end TotalLaps float32 // total number of laps in this race TrackSize float32 // track size meters LastLapTime float32 // last lap time MaxRpm float32 // cars max RPM, at which point the rev limiter will kick in }
func (*PacketDirtSeries) Brake ¶
func (p *PacketDirtSeries) Brake() float32
func (*PacketDirtSeries) Clutch ¶
func (p *PacketDirtSeries) Clutch() float32
func (*PacketDirtSeries) Gear ¶
func (p *PacketDirtSeries) Gear() int
func (*PacketDirtSeries) Handbrake ¶
func (p *PacketDirtSeries) Handbrake() float32
func (*PacketDirtSeries) MaxRPM ¶
func (p *PacketDirtSeries) MaxRPM() float32
func (*PacketDirtSeries) RPM ¶
func (p *PacketDirtSeries) RPM() float32
func (*PacketDirtSeries) Speed ¶
func (p *PacketDirtSeries) Speed() float32
func (*PacketDirtSeries) StageDistance ¶
func (p *PacketDirtSeries) StageDistance() float32
func (*PacketDirtSeries) Steering ¶
func (p *PacketDirtSeries) Steering() float32
func (*PacketDirtSeries) Throttle ¶
func (p *PacketDirtSeries) Throttle() float32
func (*PacketDirtSeries) UnmarshalBinary ¶
func (p *PacketDirtSeries) UnmarshalBinary(b []byte) error
type PacketEASportsWRC ¶
type PacketEASportsWRC struct { PacketUid uint64 // 0 GameTotalTime float32 // 1 GameDeltaTime float32 // 2 GameFrameCount uint64 // 3 ShiftlightsFraction float32 // 4 ShiftlightsRpmStart float32 // 5 ShiftlightsRpmEnd float32 // 6 ShiftlightsRpmValid bool // 7 VehicleGearIndex uint8 // 8 VehicleGearIndexNeutral uint8 // 9 VehicleGearIndexReverse uint8 // 10 VehicleGearMaximum uint8 // 11 VehicleSpeed float32 // 12 VehicleTransmissionSpeed float32 // 13 VehiclePositionX float32 // 14 VehiclePositionY float32 // 15 VehiclePositionZ float32 // 16 VehicleVelocityX float32 // 17 VehicleVelocityY float32 // 18 VehicleVelocityZ float32 // 19 VehicleAccelerationX float32 // 20 VehicleAccelerationY float32 // 21 VehicleAccelerationZ float32 // 22 VehicleLeftDirectionX float32 // 23 VehicleLeftDirectionY float32 // 24 VehicleLeftDirectionZ float32 // 25 VehicleForwardDirectionX float32 // 26 VehicleForwardDirectionY float32 // 27 VehicleForwardDirectionZ float32 // 28 VehicleUpDirectionX float32 // 29 VehicleUpDirectionY float32 // 30 VehicleUpDirectionZ float32 // 31 VehicleHubPositionBl float32 // 32 VehicleHubPositionBr float32 // 33 VehicleHubPositionFl float32 // 34 VehicleHubPositionFr float32 // 35 VehicleHubVelocityBl float32 // 36 VehicleHubVelocityBr float32 // 37 VehicleHubVelocityFl float32 // 38 VehicleHubVelocityFr float32 // 39 VehicleCpForwardSpeedBl float32 // 40 VehicleCpForwardSpeedBr float32 // 41 VehicleCpForwardSpeedFl float32 // 42 VehicleCpForwardSpeedFr float32 // 43 VehicleBrakeTemperatureBl float32 // 44 VehicleBrakeTemperatureBr float32 // 45 VehicleBrakeTemperatureFl float32 // 46 VehicleBrakeTemperatureFr float32 // 47 VehicleEngineRpmMax float32 // 48 VehicleEngineRpmIdle float32 // 49 VehicleEngineRpmCurrent float32 // 50 VehicleThrottle float32 // 51 VehicleBrake float32 // 52 VehicleClutch float32 // 53 VehicleSteering float32 // 54 VehicleHandbrake float32 // 55 StageCurrentTime float32 // 56 StageCurrentDistance float64 // 57 StageLength float64 // 58 }
func (*PacketEASportsWRC) Brake ¶
func (p *PacketEASportsWRC) Brake() float32
func (*PacketEASportsWRC) Clutch ¶
func (p *PacketEASportsWRC) Clutch() float32
func (*PacketEASportsWRC) Gear ¶
func (p *PacketEASportsWRC) Gear() int
func (*PacketEASportsWRC) Handbrake ¶
func (p *PacketEASportsWRC) Handbrake() float32
func (*PacketEASportsWRC) MaxRPM ¶
func (p *PacketEASportsWRC) MaxRPM() float32
func (*PacketEASportsWRC) RPM ¶
func (p *PacketEASportsWRC) RPM() float32
func (*PacketEASportsWRC) Speed ¶
func (p *PacketEASportsWRC) Speed() float32
func (*PacketEASportsWRC) StageDistance ¶
func (p *PacketEASportsWRC) StageDistance() float32
func (*PacketEASportsWRC) Steering ¶
func (p *PacketEASportsWRC) Steering() float32
func (*PacketEASportsWRC) Throttle ¶
func (p *PacketEASportsWRC) Throttle() float32
func (*PacketEASportsWRC) UnmarshalBinary ¶
func (p *PacketEASportsWRC) UnmarshalBinary(b []byte) error
Click to show internal directories.
Click to hide internal directories.