compass

package
v0.4.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 19, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Code generated by github.com/DIMO-Network/model-garage DO NOT EDIT.

Code generated by github.com/DIMO-Network/model-garage.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CurrentLocationAltitudeFromCompass

func CurrentLocationAltitudeFromCompass(jsonData []byte) (ret float64, err error)

CurrentLocationAltitudeFromCompass converts the given JSON data to a float64.

func CurrentLocationLatitudeFromCompass

func CurrentLocationLatitudeFromCompass(jsonData []byte) (ret float64, err error)

CurrentLocationLatitudeFromCompass converts the given JSON data to a float64.

func CurrentLocationLongitudeFromCompass

func CurrentLocationLongitudeFromCompass(jsonData []byte) (ret float64, err error)

CurrentLocationLongitudeFromCompass converts the given JSON data to a float64.

func LowVoltageBatteryCurrentVoltageFromCompass

func LowVoltageBatteryCurrentVoltageFromCompass(jsonData []byte) (ret float64, err error)

LowVoltageBatteryCurrentVoltageFromCompass converts the given JSON data to a float64.

func PowertrainFuelSystemAbsoluteLevelFromCompass

func PowertrainFuelSystemAbsoluteLevelFromCompass(jsonData []byte) (ret float64, err error)

PowertrainFuelSystemAbsoluteLevelFromCompass converts the given JSON data to a float64.

func PowertrainFuelSystemRelativeLevelFromCompass

func PowertrainFuelSystemRelativeLevelFromCompass(jsonData []byte) (ret float64, err error)

PowertrainFuelSystemRelativeLevelFromCompass converts the given JSON data to a float64.

func PowertrainTransmissionTravelledDistanceFromCompass

func PowertrainTransmissionTravelledDistanceFromCompass(jsonData []byte) (ret float64, err error)

PowertrainTransmissionTravelledDistanceFromCompass converts the given JSON data to a float64.

func SignalsFromCompass

func SignalsFromCompass(baseSignal vss.Signal, jsonData []byte) ([]vss.Signal, []error)

SignalsFromCompass creates a slice of vss.Signal from the given v1 status JSON data. On error, partial results may be returned.

func SpeedFromCompass

func SpeedFromCompass(jsonData []byte) (ret float64, err error)

SpeedFromCompass converts the given JSON data to a float64.

func ToCurrentLocationAltitude0

func ToCurrentLocationAltitude0(originalDoc []byte, val string) (float64, error)

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

func ToCurrentLocationLatitude0(originalDoc []byte, val string) (float64, error)

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

func ToCurrentLocationLongitude0(originalDoc []byte, val string) (float64, error)

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

func ToLowVoltageBatteryCurrentVoltage0(originalDoc []byte, val string) (float64, error)

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

func ToPowertrainFuelSystemAbsoluteLevel0(originalDoc []byte, val string) (float64, error)

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

func ToPowertrainFuelSystemRelativeLevel0(originalDoc []byte, val string) (float64, error)

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

func ToPowertrainTransmissionTravelledDistance0(originalDoc []byte, val string) (float64, error)

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'

func ToSpeed0

func ToSpeed0(originalDoc []byte, val string) (float64, error)

ToSpeed0 converts data from field 'labels.speed.value' of type string to 'Vehicle.Speed' of type float64. Vehicle.Speed: Vehicle speed. Unit: 'km/h'

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL