Documentation
¶
Overview ¶
Code generated by github.com/DIMO-Network/model-garage DO NOT EDIT.
Code generated by github.com/DIMO-Network/model-garage.
Index ¶
- func ChassisAxleRow1WheelLeftTirePressureFromCompass(jsonData []byte) (ret float64, err error)
- func ChassisAxleRow1WheelRightTirePressureFromCompass(jsonData []byte) (ret float64, err error)
- func ChassisAxleRow2WheelLeftTirePressureFromCompass(jsonData []byte) (ret float64, err error)
- func ChassisAxleRow2WheelRightTirePressureFromCompass(jsonData []byte) (ret float64, err error)
- func ConvertBarToKPa(bar float64) float64
- func ConvertPSIToKPa(psi float64) float64
- func CurrentLocationAltitudeFromCompass(jsonData []byte) (ret float64, err error)
- func CurrentLocationHeadingFromCompass(jsonData []byte) (ret float64, err error)
- func CurrentLocationLatitudeFromCompass(jsonData []byte) (ret float64, err error)
- func CurrentLocationLongitudeFromCompass(jsonData []byte) (ret float64, err error)
- func IsIgnitionOnFromCompass(jsonData []byte) (ret float64, err error)
- func LowVoltageBatteryCurrentVoltageFromCompass(jsonData []byte) (ret float64, err error)
- func PowertrainCombustionEngineECTFromCompass(jsonData []byte) (ret float64, err error)
- func PowertrainCombustionEngineEOPFromCompass(jsonData []byte) (ret float64, err error)
- func PowertrainCombustionEngineEOTFromCompass(jsonData []byte) (ret float64, err error)
- func PowertrainCombustionEngineSpeedFromCompass(jsonData []byte) (ret float64, err error)
- func PowertrainFuelSystemAbsoluteLevelFromCompass(jsonData []byte) (ret float64, err error)
- func PowertrainFuelSystemRelativeLevelFromCompass(jsonData []byte) (ret float64, err error)
- func PowertrainTransmissionTravelledDistanceFromCompass(jsonData []byte) (ret float64, err error)
- func SignalsFromCompass(baseSignal vss.Signal, jsonData []byte) ([]vss.Signal, []error)
- func SpeedFromCompass(jsonData []byte) (ret float64, err error)
- func ToChassisAxleRow1WheelLeftTirePressure0(originalDoc []byte, val string) (float64, error)
- func ToChassisAxleRow1WheelRightTirePressure0(originalDoc []byte, val string) (float64, error)
- func ToChassisAxleRow2WheelLeftTirePressure0(originalDoc []byte, val string) (float64, error)
- func ToChassisAxleRow2WheelRightTirePressure0(originalDoc []byte, val string) (float64, error)
- func ToCurrentLocationAltitude0(originalDoc []byte, val string) (float64, error)
- func ToCurrentLocationHeading0(originalDoc []byte, val string) (float64, error)
- func ToCurrentLocationLatitude0(originalDoc []byte, val string) (float64, error)
- func ToCurrentLocationLongitude0(originalDoc []byte, val string) (float64, error)
- func ToIsIgnitionOn0(originalDoc []byte, val string) (float64, error)
- func ToLowVoltageBatteryCurrentVoltage0(originalDoc []byte, val string) (float64, error)
- func ToPowertrainCombustionEngineECT0(originalDoc []byte, val string) (float64, error)
- func ToPowertrainCombustionEngineEOP0(originalDoc []byte, val string) (float64, error)
- func ToPowertrainCombustionEngineEOT0(originalDoc []byte, val string) (float64, error)
- func ToPowertrainCombustionEngineSpeed0(originalDoc []byte, val string) (float64, error)
- func ToPowertrainFuelSystemAbsoluteLevel0(originalDoc []byte, val string) (float64, error)
- func ToPowertrainFuelSystemRelativeLevel0(originalDoc []byte, val string) (float64, error)
- func ToPowertrainTransmissionTravelledDistance0(originalDoc []byte, val string) (float64, error)
- func ToSpeed0(originalDoc []byte, val string) (float64, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChassisAxleRow1WheelLeftTirePressureFromCompass ¶ added in v0.4.10
ChassisAxleRow1WheelLeftTirePressureFromCompass converts the given JSON data to a float64.
func ChassisAxleRow1WheelRightTirePressureFromCompass ¶ added in v0.4.10
ChassisAxleRow1WheelRightTirePressureFromCompass converts the given JSON data to a float64.
func ChassisAxleRow2WheelLeftTirePressureFromCompass ¶ added in v0.4.10
ChassisAxleRow2WheelLeftTirePressureFromCompass converts the given JSON data to a float64.
func ChassisAxleRow2WheelRightTirePressureFromCompass ¶ added in v0.4.10
ChassisAxleRow2WheelRightTirePressureFromCompass converts the given JSON data to a float64.
func ConvertBarToKPa ¶ added in v0.4.10
ConvertBarToKPa converts a pressure value from bar to kPa.
func ConvertPSIToKPa ¶ added in v0.4.10
ConvertPSIToKPa converts a pressure value from psi to kPa.
func CurrentLocationAltitudeFromCompass ¶
CurrentLocationAltitudeFromCompass converts the given JSON data to a float64.
func CurrentLocationHeadingFromCompass ¶ added in v0.4.11
CurrentLocationHeadingFromCompass converts the given JSON data to a float64.
func CurrentLocationLatitudeFromCompass ¶
CurrentLocationLatitudeFromCompass converts the given JSON data to a float64.
func CurrentLocationLongitudeFromCompass ¶
CurrentLocationLongitudeFromCompass converts the given JSON data to a float64.
func IsIgnitionOnFromCompass ¶ added in v0.4.11
IsIgnitionOnFromCompass converts the given JSON data to a float64.
func LowVoltageBatteryCurrentVoltageFromCompass ¶
LowVoltageBatteryCurrentVoltageFromCompass converts the given JSON data to a float64.
func PowertrainCombustionEngineECTFromCompass ¶ added in v0.4.10
PowertrainCombustionEngineECTFromCompass converts the given JSON data to a float64.
func PowertrainCombustionEngineEOPFromCompass ¶ added in v0.4.10
PowertrainCombustionEngineEOPFromCompass converts the given JSON data to a float64.
func PowertrainCombustionEngineEOTFromCompass ¶ added in v0.4.10
PowertrainCombustionEngineEOTFromCompass converts the given JSON data to a float64.
func PowertrainCombustionEngineSpeedFromCompass ¶ added in v0.4.10
PowertrainCombustionEngineSpeedFromCompass converts the given JSON data to a float64.
func PowertrainFuelSystemAbsoluteLevelFromCompass ¶
PowertrainFuelSystemAbsoluteLevelFromCompass converts the given JSON data to a float64.
func PowertrainFuelSystemRelativeLevelFromCompass ¶
PowertrainFuelSystemRelativeLevelFromCompass converts the given JSON data to a float64.
func PowertrainTransmissionTravelledDistanceFromCompass ¶
PowertrainTransmissionTravelledDistanceFromCompass converts the given JSON data to a float64.
func SignalsFromCompass ¶
SignalsFromCompass creates a slice of vss.Signal from the given v1 status JSON data. On error, partial results may be returned.
func SpeedFromCompass ¶
SpeedFromCompass converts the given JSON data to a float64.
func ToChassisAxleRow1WheelLeftTirePressure0 ¶ added in v0.4.10
ToChassisAxleRow1WheelLeftTirePressure0 converts data from field 'labels.tirePressure.front.left.value' of type string to 'Vehicle.Chassis.Axle.Row1.Wheel.Left.Tire.Pressure' of type float64. Vehicle.Chassis.Axle.Row1.Wheel.Left.Tire.Pressure: Tire pressure in kilo-Pascal. Unit: 'kPa'
func ToChassisAxleRow1WheelRightTirePressure0 ¶ added in v0.4.10
ToChassisAxleRow1WheelRightTirePressure0 converts data from field 'labels.tirePressure.front.right.value' of type string to 'Vehicle.Chassis.Axle.Row1.Wheel.Right.Tire.Pressure' of type float64. Vehicle.Chassis.Axle.Row1.Wheel.Right.Tire.Pressure: Tire pressure in kilo-Pascal. Unit: 'kPa'
func ToChassisAxleRow2WheelLeftTirePressure0 ¶ added in v0.4.10
ToChassisAxleRow2WheelLeftTirePressure0 converts data from field 'labels.tirePressure.rear.left.value' of type string to 'Vehicle.Chassis.Axle.Row2.Wheel.Left.Tire.Pressure' of type float64. Vehicle.Chassis.Axle.Row2.Wheel.Left.Tire.Pressure: Tire pressure in kilo-Pascal. Unit: 'kPa'
func ToChassisAxleRow2WheelRightTirePressure0 ¶ added in v0.4.10
ToChassisAxleRow2WheelRightTirePressure0 converts data from field 'labels.tirePressure.rear.right.value' of type string to 'Vehicle.Chassis.Axle.Row2.Wheel.Right.Tire.Pressure' of type float64. Vehicle.Chassis.Axle.Row2.Wheel.Right.Tire.Pressure: Tire pressure in kilo-Pascal. Unit: 'kPa'
func ToCurrentLocationAltitude0 ¶
ToCurrentLocationAltitude0 converts data from field 'labels.geolocation.altitude.value' of type string to 'Vehicle.CurrentLocation.Altitude' of type float64. Vehicle.CurrentLocation.Altitude: Current altitude relative to WGS 84 reference ellipsoid, as measured at the position of GNSS receiver antenna. Unit: 'm'
func ToCurrentLocationHeading0 ¶ added in v0.4.11
ToCurrentLocationHeading0 converts data from field 'labels.heading' of type string to 'Vehicle.CurrentLocation.Heading' of type float64. Vehicle.CurrentLocation.Heading: Current heading relative to geographic north. 0 = North, 90 = East, 180 = South, 270 = West. Unit: 'degrees' Min: '0' Max: '360'
func ToCurrentLocationLatitude0 ¶
ToCurrentLocationLatitude0 converts data from field 'labels.geolocation.latitude' of type string to 'Vehicle.CurrentLocation.Latitude' of type float64. Vehicle.CurrentLocation.Latitude: Current latitude of vehicle in WGS 84 geodetic coordinates, as measured at the position of GNSS receiver antenna. Unit: 'degrees' Min: '-90' Max: '90'
func ToCurrentLocationLongitude0 ¶
ToCurrentLocationLongitude0 converts data from field 'labels.geolocation.longitude' of type string to 'Vehicle.CurrentLocation.Longitude' of type float64. Vehicle.CurrentLocation.Longitude: Current longitude of vehicle in WGS 84 geodetic coordinates, as measured at the position of GNSS receiver antenna. Unit: 'degrees' Min: '-180' Max: '180'
func ToIsIgnitionOn0 ¶ added in v0.4.11
ToIsIgnitionOn0 converts data from field 'labels.engine.ignition' of type string to 'Vehicle.IsIgnitionOn' of type float64. Vehicle.IsIgnitionOn: Vehicle ignition status. False - off, True - on.
func ToLowVoltageBatteryCurrentVoltage0 ¶
ToLowVoltageBatteryCurrentVoltage0 converts data from field 'labels.engine.battery.voltage.value' of type string to 'Vehicle.LowVoltageBattery.CurrentVoltage' of type float64. Vehicle.LowVoltageBattery.CurrentVoltage: Current Voltage of the low voltage battery. Unit: 'V'
func ToPowertrainCombustionEngineECT0 ¶ added in v0.4.10
ToPowertrainCombustionEngineECT0 converts data from field 'labels.engine.coolant.temperature.value' of type string to 'Vehicle.Powertrain.CombustionEngine.ECT' of type float64. Vehicle.Powertrain.CombustionEngine.ECT: Engine coolant temperature. Unit: 'celsius'
func ToPowertrainCombustionEngineEOP0 ¶ added in v0.4.10
ToPowertrainCombustionEngineEOP0 converts data from field 'labels.engine.oil.pressure.value' of type string to 'Vehicle.Powertrain.CombustionEngine.EOP' of type float64. Vehicle.Powertrain.CombustionEngine.EOP: Engine oil pressure. Unit: 'kPa'
func ToPowertrainCombustionEngineEOT0 ¶ added in v0.4.10
ToPowertrainCombustionEngineEOT0 converts data from field 'labels.engine.oil.temperature.value' of type string to 'Vehicle.Powertrain.CombustionEngine.EOT' of type float64. Vehicle.Powertrain.CombustionEngine.EOT: Engine oil temperature. Unit: 'celsius'
func ToPowertrainCombustionEngineSpeed0 ¶ added in v0.4.10
ToPowertrainCombustionEngineSpeed0 converts data from field 'labels.engine.speed.value' of type string to 'Vehicle.Powertrain.CombustionEngine.Speed' of type float64. Vehicle.Powertrain.CombustionEngine.Speed: Engine speed measured as rotations per minute. Unit: 'rpm'
func ToPowertrainFuelSystemAbsoluteLevel0 ¶
ToPowertrainFuelSystemAbsoluteLevel0 converts data from field 'labels.fuel.level.value' of type string to 'Vehicle.Powertrain.FuelSystem.AbsoluteLevel' of type float64. Vehicle.Powertrain.FuelSystem.AbsoluteLevel: Current available fuel in the fuel tank expressed in liters. Unit: 'l'
func ToPowertrainFuelSystemRelativeLevel0 ¶
ToPowertrainFuelSystemRelativeLevel0 converts data from field 'labels.fuel.level.percentage' of type string to 'Vehicle.Powertrain.FuelSystem.RelativeLevel' of type float64. Vehicle.Powertrain.FuelSystem.RelativeLevel: Level in fuel tank as percent of capacity. 0 = empty. 100 = full. Unit: 'percent' Min: '0' Max: '100'
func ToPowertrainTransmissionTravelledDistance0 ¶
ToPowertrainTransmissionTravelledDistance0 converts data from field 'labels.odometer.value' of type string to 'Vehicle.Powertrain.Transmission.TravelledDistance' of type float64. Vehicle.Powertrain.Transmission.TravelledDistance: Odometer reading, total distance travelled during the lifetime of the transmission. Unit: 'km'
Types ¶
This section is empty.
Directories
¶
Path | Synopsis |
---|---|
Package fingerprint provides decoding for Compass fingerprint payloads.
|
Package fingerprint provides decoding for Compass fingerprint payloads. |
Package status converts Compass CloudEvents to ClickHouse-ready slices of signals.
|
Package status converts Compass CloudEvents to ClickHouse-ready slices of signals. |