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 CurrentLocationAltitudeFromCompass(jsonData []byte) (ret float64, err error)
- func CurrentLocationLatitudeFromCompass(jsonData []byte) (ret float64, err error)
- func CurrentLocationLongitudeFromCompass(jsonData []byte) (ret float64, err error)
- func LowVoltageBatteryCurrentVoltageFromCompass(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 ToCurrentLocationAltitude0(originalDoc []byte, val string) (float64, error)
- func ToCurrentLocationLatitude0(originalDoc []byte, val string) (float64, error)
- func ToCurrentLocationLongitude0(originalDoc []byte, val string) (float64, error)
- func ToLowVoltageBatteryCurrentVoltage0(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 CurrentLocationAltitudeFromCompass ¶
CurrentLocationAltitudeFromCompass 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 LowVoltageBatteryCurrentVoltageFromCompass ¶
LowVoltageBatteryCurrentVoltageFromCompass 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 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 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 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 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. |