Documentation ¶
Index ¶
Constants ¶
View Source
const ( TypeTelemetry = 1 TypeTiming = 2 )
Variables ¶
This section is empty.
Functions ¶
func MaxTelemetrySize ¶
func MaxTelemetrySize() int
Types ¶
type Header ¶
type Header struct {
Type uint8
}
same definition and order as common.h in jd3nn1s/nerdobd2
type JSONDuration ¶
func (JSONDuration) MarshalJSON ¶
func (d JSONDuration) MarshalJSON() ([]byte, error)
type Telemetry ¶
type TelemetryWithStatus ¶
type TelemetryWithStatus struct { *Telemetry WarningFields []string `json:",omitempty"` ErrorFields []string `json:",omitempty"` }
func (TelemetryWithStatus) JSONEncode ¶
func (t TelemetryWithStatus) JSONEncode() ([]byte, error)
type Timing ¶
type Timing struct { BestLap JSONDuration BestLapDriver string LastLap JSONDuration LapCount int DriverName string TeamAheadName string TeamAheadLapCount int TeamAheadLastLap JSONDuration TeamAheadSplit JSONDuration }
func (Timing) JSONEncode ¶
Click to show internal directories.
Click to hide internal directories.