Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GT7Communication ¶
type GT7Communication struct { LastData GTData // contains filtered or unexported fields }
func NewGT7Communication ¶
func NewGT7Communication(playstationIP string) *GT7Communication
func (*GT7Communication) Run ¶
func (gt7c *GT7Communication) Run() error
func (*GT7Communication) Start ¶
func (gt7c *GT7Communication) Start() error
func (*GT7Communication) Stop ¶
func (gt7c *GT7Communication) Stop()
type GTData ¶
type GTData struct { PackageID int32 BestLap int32 LastLap int32 CurrentLap int16 CurrentGear uint8 SuggestedGear uint8 FuelCapacity float32 CurrentFuel float32 Boost float32 TyreDiameterFL float32 TyreDiameterFR float32 TyreDiameterRL float32 TyreDiameterRR float32 TypeSpeedFL float32 TypeSpeedFR float32 TypeSpeedRL float32 TyreSpeedRR float32 CarSpeed float32 TyreSlipRatioFL float32 TyreSlipRatioFR float32 TyreSlipRatioRL float32 TyreSlipRatioRR float32 TimeOnTrack Duration TotalLaps int16 CurrentPosition int16 TotalPositions int16 CarID int32 Throttle float32 RPM float32 RPMRevWarning uint16 Brake float32 RPMRevLimiter uint16 EstimatedTopSpeed int16 Clutch float32 ClutchEngaged float32 RPMAfterClutch float32 OilTemp float32 WaterTemp float32 OilPressure float32 RideHeight float32 TyreTempFL float32 TyreTempFR float32 SuspensionFL float32 SuspensionFR float32 TyreTempRL float32 TyreTempRR float32 SuspensionRL float32 SuspensionRR float32 Gear1 float32 Gear2 float32 Gear3 float32 Gear4 float32 Gear5 float32 Gear6 float32 Gear7 float32 Gear8 float32 PositionX float32 PositionY float32 PositionZ float32 VelocityX float32 VelocityY float32 VelocityZ float32 RotationPitch float32 RotationYaw float32 RotationRoll float32 AngularVelocityX float32 AngularVelocityY float32 AngularVelocityZ float32 IsPaused bool InRace bool IsLoading bool IsInGear bool CarHasTurbo bool IsRevLimiterFlashing bool IsHandbrakeEngaged bool IsLightsOn bool IsLowBeamOn bool IsHighBeamOn bool IsASMEngaged bool IsTCSEngaged bool // Following flags are unknown // See https://www.gtplanet.net/forum/threads/gt7-is-compatible-with-motion-rig.410728/page-4#post-13799643 // for more information UnknownFlag12 byte UnknownFlag13 byte UnknownFlag14 byte UnknownFlag15 byte }
Click to show internal directories.
Click to hide internal directories.