Documentation ¶
Overview ¶
Code generated by github.com/DIMO-Network/pkg/ruptela/codegen DO NOT EDIT.
Code generated by github.com/DIMO-Network/model-garage.
Code generated by github.com/DIMO-Network/model-garage DO NOT EDIT.
Code generated by github.com/DIMO-Network/model-garage DO NOT EDIT.
Index ¶
- Constants
- func ChassisAxleRow1WheelLeftTirePressureFromV1Data(jsonData []byte) (ret float64, err error)
- func ChassisAxleRow1WheelRightTirePressureFromV1Data(jsonData []byte) (ret float64, err error)
- func ChassisAxleRow2WheelLeftTirePressureFromV1Data(jsonData []byte) (ret float64, err error)
- func ChassisAxleRow2WheelRightTirePressureFromV1Data(jsonData []byte) (ret float64, err error)
- func Convert102(rawValue string) (float64, error)
- func Convert103(rawValue string) (float64, error)
- func Convert107(rawValue string) (float64, error)
- func Convert114(rawValue string) (float64, error)
- func Convert1148(rawValue string) (float64, error)
- func Convert1149(rawValue string) (float64, error)
- func Convert1150(rawValue string) (float64, error)
- func Convert205(rawValue string) (float64, error)
- func Convert207(rawValue string) (float64, error)
- func Convert29(rawValue string) (float64, error)
- func Convert483(rawValue string) (float64, error)
- func Convert642(rawValue string) (float64, error)
- func Convert645(rawValue string) (float64, error)
- func Convert722(rawValue string) (float64, error)
- func Convert723(rawValue string) (float64, error)
- func Convert94(rawValue string) (float64, error)
- func Convert95(rawValue string) (float64, error)
- func Convert96(rawValue string) (float64, error)
- func Convert960(rawValue string) (float64, error)
- func Convert961(rawValue string) (float64, error)
- func Convert962(rawValue string) (float64, error)
- func Convert963(rawValue string) (float64, error)
- func Convert964(rawValue string) (float64, error)
- func Convert97(rawValue string) (float64, error)
- func Convert98(rawValue string) (float64, error)
- func Convert99(rawValue string) (float64, error)
- func CurrentLocationAltitudeFromLocationData(originalDoc []byte, result gjson.Result) (ret float64, err error)
- func CurrentLocationAltitudeFromV1Data(jsonData []byte) (ret float64, err error)
- func CurrentLocationLatitudeFromLocationData(originalDoc []byte, result gjson.Result) (ret float64, err error)
- func CurrentLocationLatitudeFromV1Data(jsonData []byte) (ret float64, err error)
- func CurrentLocationLongitudeFromLocationData(originalDoc []byte, result gjson.Result) (ret float64, err error)
- func CurrentLocationLongitudeFromV1Data(jsonData []byte) (ret float64, err error)
- func DIMOAftermarketHDOPFromLocationData(originalDoc []byte, result gjson.Result) (ret float64, err error)
- func DIMOAftermarketHDOPFromV1Data(jsonData []byte) (ret float64, err error)
- func DIMOAftermarketNSATFromLocationData(originalDoc []byte, result gjson.Result) (ret float64, err error)
- func DIMOAftermarketNSATFromV1Data(jsonData []byte) (ret float64, err error)
- func ExteriorAirTemperatureFromV1Data(jsonData []byte) (ret float64, err error)
- func LowVoltageBatteryCurrentVoltageFromV1Data(jsonData []byte) (ret float64, err error)
- func OBDDistanceWithMILFromV1Data(jsonData []byte) (ret float64, err error)
- func OBDRunTimeFromV1Data(jsonData []byte) (ret float64, err error)
- func PowertrainCombustionEngineDieselExhaustFluidCapacityFromV1Data(jsonData []byte) (ret float64, err error)
- func PowertrainCombustionEngineDieselExhaustFluidLevelFromV1Data(jsonData []byte) (ret float64, err error)
- func PowertrainCombustionEngineECTFromV1Data(jsonData []byte) (ret float64, err error)
- func PowertrainCombustionEngineEngineOilLevelFromV1Data(jsonData []byte) (ret string, err error)
- func PowertrainCombustionEngineEngineOilRelativeLevelFromV1Data(jsonData []byte) (ret float64, err error)
- func PowertrainCombustionEngineSpeedFromV1Data(jsonData []byte) (ret float64, err error)
- func PowertrainCombustionEngineTPSFromV1Data(jsonData []byte) (ret float64, err error)
- func PowertrainFuelSystemAbsoluteLevelFromV1Data(jsonData []byte) (ret float64, err error)
- func PowertrainFuelSystemRelativeLevelFromV1Data(jsonData []byte) (ret float64, err error)
- func PowertrainTractionBatteryRangeFromV1Data(jsonData []byte) (ret float64, err error)
- func PowertrainTractionBatteryStateOfChargeCurrentFromV1Data(jsonData []byte) (ret float64, err error)
- func PowertrainTransmissionTravelledDistanceFromV1Data(jsonData []byte) (ret float64, err error)
- func PowertrainTypeFromV1Data(jsonData []byte) (ret string, err error)
- func SignalsFromLocationData(originalDoc []byte, baseSignal vss.Signal, signalName string, ...) ([]vss.Signal, error)
- func SignalsFromV1Data(baseSignal vss.Signal, jsonData []byte) ([]vss.Signal, []error)
- func SpeedFromLocationData(originalDoc []byte, result gjson.Result) (ret float64, err error)
- func SpeedFromV1Data(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 float64) (float64, error)
- func ToCurrentLocationLatitude0(originalDoc []byte, val float64) (float64, error)
- func ToCurrentLocationLongitude0(originalDoc []byte, val float64) (float64, error)
- func ToDIMOAftermarketHDOP0(originalDoc []byte, val float64) (float64, error)
- func ToDIMOAftermarketNSAT0(originalDoc []byte, val float64) (float64, error)
- func ToExteriorAirTemperature0(originalDoc []byte, val string) (float64, error)
- func ToLowVoltageBatteryCurrentVoltage0(originalDoc []byte, val string) (float64, error)
- func ToOBDDistanceWithMIL0(originalDoc []byte, val string) (float64, error)
- func ToOBDRunTime0(originalDoc []byte, val string) (float64, error)
- func ToPowertrainCombustionEngineDieselExhaustFluidCapacity0(originalDoc []byte, val string) (float64, error)
- func ToPowertrainCombustionEngineDieselExhaustFluidCapacity1(originalDoc []byte, val string) (float64, error)
- func ToPowertrainCombustionEngineDieselExhaustFluidLevel0(originalDoc []byte, val string) (float64, error)
- func ToPowertrainCombustionEngineECT0(originalDoc []byte, val string) (float64, error)
- func ToPowertrainCombustionEngineEngineOilLevel0(originalDoc []byte, val string) (string, error)
- func ToPowertrainCombustionEngineEngineOilRelativeLevel0(originalDoc []byte, val string) (float64, error)
- func ToPowertrainCombustionEngineSpeed0(originalDoc []byte, val string) (float64, error)
- func ToPowertrainCombustionEngineTPS0(originalDoc []byte, val string) (float64, error)
- func ToPowertrainFuelSystemAbsoluteLevel0(originalDoc []byte, val string) (float64, error)
- func ToPowertrainFuelSystemAbsoluteLevel1(originalDoc []byte, val string) (float64, error)
- func ToPowertrainFuelSystemRelativeLevel0(originalDoc []byte, val string) (float64, error)
- func ToPowertrainFuelSystemRelativeLevel1(originalDoc []byte, val string) (float64, error)
- func ToPowertrainTractionBatteryRange0(originalDoc []byte, val string) (float64, error)
- func ToPowertrainTractionBatteryStateOfChargeCurrent0(originalDoc []byte, val string) (float64, error)
- func ToPowertrainTransmissionTravelledDistance0(originalDoc []byte, val string) (float64, error)
- func ToPowertrainTransmissionTravelledDistance1(originalDoc []byte, val string) (float64, error)
- func ToPowertrainType0(originalDoc []byte, val string) (string, error)
- func ToPowertrainType1(originalDoc []byte, val string) (string, error)
- func ToSpeed0(originalDoc []byte, val string) (float64, error)
- func ToSpeed1(originalDoc []byte, val float64) (float64, error)
Constants ¶
const ( // StatusEventDS is the data version for status events. StatusEventDS = "r/v0/s" // DevStatusDS is the data version for device status events. DevStatusDS = "r/v0/dev" // LocationEventDS is the data version for location events. LocationEventDS = "r/v0/loc" )
Variables ¶
This section is empty.
Functions ¶
func ChassisAxleRow1WheelLeftTirePressureFromV1Data ¶
ChassisAxleRow1WheelLeftTirePressureFromV1Data converts the given JSON data to a float64.
func ChassisAxleRow1WheelRightTirePressureFromV1Data ¶
ChassisAxleRow1WheelRightTirePressureFromV1Data converts the given JSON data to a float64.
func ChassisAxleRow2WheelLeftTirePressureFromV1Data ¶
ChassisAxleRow2WheelLeftTirePressureFromV1Data converts the given JSON data to a float64.
func ChassisAxleRow2WheelRightTirePressureFromV1Data ¶
ChassisAxleRow2WheelRightTirePressureFromV1Data converts the given JSON data to a float64.
func Convert102 ¶
Convert102 converts the given raw value to a float64. Unit: 'km' Min: '0' Max: '65535'.
func Convert103 ¶
Convert103 converts the given raw value to a float64. Unit: '%' Min: '0' Max: '255'.
func Convert107 ¶
Convert107 converts the given raw value to a float64. Min: '0' Max: '65535'.
func Convert114 ¶
Convert114 converts the given raw value to a float64. Unit: 'm' Min: '0' Max: '4211081215'.
func Convert1148 ¶ added in v0.4.0
Convert1148 converts the given raw value to a float64. Unit: 'liters' Min: '0' Max: '254'.
func Convert1149 ¶ added in v0.4.0
Convert1149 converts the given raw value to a float64. Unit: 'liters' Min: '0' Max: '254'.
func Convert1150 ¶ added in v0.4.0
Convert1150 converts the given raw value to a float64. Unit: '%' Min: '0' Max: '250'.
func Convert205 ¶ added in v0.3.3
Convert205 converts the given raw value to a float64. Unit: 'l' Min: '0' Max: '65535'.
func Convert207 ¶
Convert207 converts the given raw value to a float64. Unit: '%' Min: '0' Max: '250'.
func Convert29 ¶ added in v0.3.3
Convert29 converts the given raw value to a float64. Unit: 'mV' Min: '0' Max: '65535'.
func Convert483 ¶
Convert483 converts the given raw value to a float64. Unit: '-' Min: '0' Max: '250'.
func Convert642 ¶
Convert642 converts the given raw value to a float64. Unit: 'l' Min: '0' Max: '0xFFFF or 65535'.
func Convert645 ¶
Convert645 converts the given raw value to a float64. Unit: 'km' Min: '0' Max: '0xFFFFFFFF'.
func Convert722 ¶
Convert722 converts the given raw value to a float64. Unit: '%' Min: '0' Max: '255'.
func Convert723 ¶
Convert723 converts the given raw value to a float64. Unit: 'km' Min: '0' Max: '65535'.
func Convert94 ¶ added in v0.3.3
Convert94 converts the given raw value to a float64. Unit: 'RPM' Min: '0' Max: '65,535'.
func Convert95 ¶
Convert95 converts the given raw value to a float64. Unit: 'km/h' Min: '0' Max: '255'.
func Convert96 ¶
Convert96 converts the given raw value to a float64. Unit: '°C' Min: '0' Max: '255'.
func Convert960 ¶ added in v0.3.3
Convert960 converts the given raw value to a float64. Unit: 'PSI' Min: '0' Max: '65534'.
func Convert961 ¶ added in v0.3.3
Convert961 converts the given raw value to a float64. Unit: 'PSI' Min: '0' Max: '65534'.
func Convert962 ¶ added in v0.3.3
Convert962 converts the given raw value to a float64. Unit: 'PSI' Min: '0' Max: '65534'.
func Convert963 ¶ added in v0.3.3
Convert963 converts the given raw value to a float64. Unit: 'PSI' Min: '0' Max: '65534'.
func Convert964 ¶ added in v0.3.3
Convert964 converts the given raw value to a float64. Unit: '%' Min: '0' Max: '254'.
func Convert97 ¶
Convert97 converts the given raw value to a float64. Unit: '°C' Min: '0' Max: '255'.
func Convert98 ¶
Convert98 converts the given raw value to a float64. Unit: '%' Min: '0' Max: '255'.
func CurrentLocationAltitudeFromLocationData ¶ added in v0.3.1
func CurrentLocationAltitudeFromLocationData(originalDoc []byte, result gjson.Result) (ret float64, err error)
CurrentLocationAltitudeFromLocationData converts the given JSON data to a float64.
func CurrentLocationAltitudeFromV1Data ¶
CurrentLocationAltitudeFromV1Data converts the given JSON data to a float64.
func CurrentLocationLatitudeFromLocationData ¶ added in v0.3.1
func CurrentLocationLatitudeFromLocationData(originalDoc []byte, result gjson.Result) (ret float64, err error)
CurrentLocationLatitudeFromLocationData converts the given JSON data to a float64.
func CurrentLocationLatitudeFromV1Data ¶
CurrentLocationLatitudeFromV1Data converts the given JSON data to a float64.
func CurrentLocationLongitudeFromLocationData ¶ added in v0.3.1
func CurrentLocationLongitudeFromLocationData(originalDoc []byte, result gjson.Result) (ret float64, err error)
CurrentLocationLongitudeFromLocationData converts the given JSON data to a float64.
func CurrentLocationLongitudeFromV1Data ¶
CurrentLocationLongitudeFromV1Data converts the given JSON data to a float64.
func DIMOAftermarketHDOPFromLocationData ¶ added in v0.3.1
func DIMOAftermarketHDOPFromLocationData(originalDoc []byte, result gjson.Result) (ret float64, err error)
DIMOAftermarketHDOPFromLocationData converts the given JSON data to a float64.
func DIMOAftermarketHDOPFromV1Data ¶
DIMOAftermarketHDOPFromV1Data converts the given JSON data to a float64.
func DIMOAftermarketNSATFromLocationData ¶ added in v0.3.1
func DIMOAftermarketNSATFromLocationData(originalDoc []byte, result gjson.Result) (ret float64, err error)
DIMOAftermarketNSATFromLocationData converts the given JSON data to a float64.
func DIMOAftermarketNSATFromV1Data ¶
DIMOAftermarketNSATFromV1Data converts the given JSON data to a float64.
func ExteriorAirTemperatureFromV1Data ¶
ExteriorAirTemperatureFromV1Data converts the given JSON data to a float64.
func LowVoltageBatteryCurrentVoltageFromV1Data ¶
LowVoltageBatteryCurrentVoltageFromV1Data converts the given JSON data to a float64.
func OBDDistanceWithMILFromV1Data ¶
OBDDistanceWithMILFromV1Data converts the given JSON data to a float64.
func OBDRunTimeFromV1Data ¶
OBDRunTimeFromV1Data converts the given JSON data to a float64.
func PowertrainCombustionEngineDieselExhaustFluidCapacityFromV1Data ¶ added in v0.4.0
func PowertrainCombustionEngineDieselExhaustFluidCapacityFromV1Data(jsonData []byte) (ret float64, err error)
PowertrainCombustionEngineDieselExhaustFluidCapacityFromV1Data converts the given JSON data to a float64.
func PowertrainCombustionEngineDieselExhaustFluidLevelFromV1Data ¶ added in v0.4.0
func PowertrainCombustionEngineDieselExhaustFluidLevelFromV1Data(jsonData []byte) (ret float64, err error)
PowertrainCombustionEngineDieselExhaustFluidLevelFromV1Data converts the given JSON data to a float64.
func PowertrainCombustionEngineECTFromV1Data ¶
PowertrainCombustionEngineECTFromV1Data converts the given JSON data to a float64.
func PowertrainCombustionEngineEngineOilLevelFromV1Data ¶
PowertrainCombustionEngineEngineOilLevelFromV1Data converts the given JSON data to a string.
func PowertrainCombustionEngineEngineOilRelativeLevelFromV1Data ¶ added in v0.3.3
func PowertrainCombustionEngineEngineOilRelativeLevelFromV1Data(jsonData []byte) (ret float64, err error)
PowertrainCombustionEngineEngineOilRelativeLevelFromV1Data converts the given JSON data to a float64.
func PowertrainCombustionEngineSpeedFromV1Data ¶ added in v0.3.3
PowertrainCombustionEngineSpeedFromV1Data converts the given JSON data to a float64.
func PowertrainCombustionEngineTPSFromV1Data ¶
PowertrainCombustionEngineTPSFromV1Data converts the given JSON data to a float64.
func PowertrainFuelSystemAbsoluteLevelFromV1Data ¶
PowertrainFuelSystemAbsoluteLevelFromV1Data converts the given JSON data to a float64.
func PowertrainFuelSystemRelativeLevelFromV1Data ¶
PowertrainFuelSystemRelativeLevelFromV1Data converts the given JSON data to a float64.
func PowertrainTractionBatteryRangeFromV1Data ¶ added in v0.4.1
PowertrainTractionBatteryRangeFromV1Data converts the given JSON data to a float64.
func PowertrainTractionBatteryStateOfChargeCurrentFromV1Data ¶
func PowertrainTractionBatteryStateOfChargeCurrentFromV1Data(jsonData []byte) (ret float64, err error)
PowertrainTractionBatteryStateOfChargeCurrentFromV1Data converts the given JSON data to a float64.
func PowertrainTransmissionTravelledDistanceFromV1Data ¶
PowertrainTransmissionTravelledDistanceFromV1Data converts the given JSON data to a float64.
func PowertrainTypeFromV1Data ¶
PowertrainTypeFromV1Data converts the given JSON data to a string.
func SignalsFromLocationData ¶ added in v0.3.1
func SignalsFromLocationData(originalDoc []byte, baseSignal vss.Signal, signalName string, valResult gjson.Result) ([]vss.Signal, error)
SignalsFromLocationData converts the given JSON data to a slice of signals.
func SignalsFromV1Data ¶
SignalsFromV1Data creates a slice of vss.Signal from the given v1 status JSON data. On error, partial results may be returned.
func SpeedFromLocationData ¶ added in v0.3.2
SpeedFromLocationData converts the given JSON data to a float64.
func SpeedFromV1Data ¶
SpeedFromV1Data converts the given JSON data to a float64.
func ToChassisAxleRow1WheelLeftTirePressure0 ¶
ToChassisAxleRow1WheelLeftTirePressure0 converts data from field 'signals.960' 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 ¶
ToChassisAxleRow1WheelRightTirePressure0 converts data from field 'signals.961' 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 ¶
ToChassisAxleRow2WheelLeftTirePressure0 converts data from field 'signals.962' 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 ¶
ToChassisAxleRow2WheelRightTirePressure0 converts data from field 'signals.963' 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 'pos.alt' of type float64 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 'pos.lat' of type float64 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 'pos.lon' of type float64 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 ToDIMOAftermarketHDOP0 ¶
ToDIMOAftermarketHDOP0 converts data from field 'pos.hdop' of type float64 to 'Vehicle.DIMO.Aftermarket.HDOP' of type float64. Vehicle.DIMO.Aftermarket.HDOP: Horizontal dilution of precision of GPS
func ToDIMOAftermarketNSAT0 ¶
ToDIMOAftermarketNSAT0 converts data from field 'pos.sat' of type float64 to 'Vehicle.DIMO.Aftermarket.NSAT' of type float64. Vehicle.DIMO.Aftermarket.NSAT: Number of sync satellites for GPS
func ToExteriorAirTemperature0 ¶
ToExteriorAirTemperature0 converts data from field 'signals.97' of type string to 'Vehicle.Exterior.AirTemperature' of type float64. Vehicle.Exterior.AirTemperature: Air temperature outside the vehicle. Unit: 'celsius'
func ToLowVoltageBatteryCurrentVoltage0 ¶
ToLowVoltageBatteryCurrentVoltage0 converts data from field 'signals.29' of type string to 'Vehicle.LowVoltageBattery.CurrentVoltage' of type float64. Vehicle.LowVoltageBattery.CurrentVoltage: Current Voltage of the low voltage battery. Unit: 'V'
func ToOBDDistanceWithMIL0 ¶
ToOBDDistanceWithMIL0 converts data from field 'signals.102' of type string to 'Vehicle.OBD.DistanceWithMIL' of type float64. Vehicle.OBD.DistanceWithMIL: PID 21 - Distance traveled with MIL on Unit: 'km'
func ToOBDRunTime0 ¶
ToOBDRunTime0 converts data from field 'signals.107' of type string to 'Vehicle.OBD.RunTime' of type float64. Vehicle.OBD.RunTime: PID 1F - Engine run time Unit: 's'
func ToPowertrainCombustionEngineDieselExhaustFluidCapacity0 ¶ added in v0.4.0
func ToPowertrainCombustionEngineDieselExhaustFluidCapacity0(originalDoc []byte, val string) (float64, error)
ToPowertrainCombustionEngineDieselExhaustFluidCapacity0 converts data from field 'signals.1148' of type string to 'Vehicle.Powertrain.CombustionEngine.DieselExhaustFluid.Capacity' of type float64. Vehicle.Powertrain.CombustionEngine.DieselExhaustFluid.Capacity: Capacity in liters of the Diesel Exhaust Fluid Tank. Unit: 'l'
func ToPowertrainCombustionEngineDieselExhaustFluidCapacity1 ¶ added in v0.4.0
func ToPowertrainCombustionEngineDieselExhaustFluidCapacity1(originalDoc []byte, val string) (float64, error)
ToPowertrainCombustionEngineDieselExhaustFluidCapacity1 converts data from field 'signals.1149' of type string to 'Vehicle.Powertrain.CombustionEngine.DieselExhaustFluid.Capacity' of type float64. Vehicle.Powertrain.CombustionEngine.DieselExhaustFluid.Capacity: Capacity in liters of the Diesel Exhaust Fluid Tank. Unit: 'l'
func ToPowertrainCombustionEngineDieselExhaustFluidLevel0 ¶ added in v0.4.0
func ToPowertrainCombustionEngineDieselExhaustFluidLevel0(originalDoc []byte, val string) (float64, error)
ToPowertrainCombustionEngineDieselExhaustFluidLevel0 converts data from field 'signals.1150' of type string to 'Vehicle.Powertrain.CombustionEngine.DieselExhaustFluid.Level' of type float64. Vehicle.Powertrain.CombustionEngine.DieselExhaustFluid.Level: Level of the Diesel Exhaust Fluid tank as percent of capacity. 0 = empty. 100 = full. Unit: 'percent' Min: '0' Max: '100'
func ToPowertrainCombustionEngineECT0 ¶
ToPowertrainCombustionEngineECT0 converts data from field 'signals.96' of type string to 'Vehicle.Powertrain.CombustionEngine.ECT' of type float64. Vehicle.Powertrain.CombustionEngine.ECT: Engine coolant temperature. Unit: 'celsius'
func ToPowertrainCombustionEngineEngineOilLevel0 ¶
ToPowertrainCombustionEngineEngineOilLevel0 converts data from field 'signals.964' of type string to 'Vehicle.Powertrain.CombustionEngine.EngineOilLevel' of type string. Vehicle.Powertrain.CombustionEngine.EngineOilLevel: Engine oil level.
func ToPowertrainCombustionEngineEngineOilRelativeLevel0 ¶ added in v0.3.3
func ToPowertrainCombustionEngineEngineOilRelativeLevel0(originalDoc []byte, val string) (float64, error)
ToPowertrainCombustionEngineEngineOilRelativeLevel0 converts data from field 'signals.964' of type string to 'Vehicle.Powertrain.CombustionEngine.EngineOilRelativeLevel' of type float64. Vehicle.Powertrain.CombustionEngine.EngineOilRelativeLevel: Engine oil level as a percentage. Unit: 'percent' Min: '0' Max: '100'
func ToPowertrainCombustionEngineSpeed0 ¶ added in v0.3.3
ToPowertrainCombustionEngineSpeed0 converts data from field 'signals.94' 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 ToPowertrainCombustionEngineTPS0 ¶
ToPowertrainCombustionEngineTPS0 converts data from field 'signals.103' of type string to 'Vehicle.Powertrain.CombustionEngine.TPS' of type float64. Vehicle.Powertrain.CombustionEngine.TPS: Current throttle position. Unit: 'percent' Max: '100'
func ToPowertrainFuelSystemAbsoluteLevel0 ¶
ToPowertrainFuelSystemAbsoluteLevel0 converts data from field 'signals.642' 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 ToPowertrainFuelSystemAbsoluteLevel1 ¶ added in v0.3.3
ToPowertrainFuelSystemAbsoluteLevel1 converts data from field 'signals.205' 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 'signals.98' 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 ToPowertrainFuelSystemRelativeLevel1 ¶
ToPowertrainFuelSystemRelativeLevel1 converts data from field 'signals.207' 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 ToPowertrainTractionBatteryRange0 ¶ added in v0.4.1
ToPowertrainTractionBatteryRange0 converts data from field 'signals.723' of type string to 'Vehicle.Powertrain.TractionBattery.Range' of type float64. Vehicle.Powertrain.TractionBattery.Range: Remaining range in meters using only battery. Unit: 'm'
func ToPowertrainTractionBatteryStateOfChargeCurrent0 ¶
func ToPowertrainTractionBatteryStateOfChargeCurrent0(originalDoc []byte, val string) (float64, error)
ToPowertrainTractionBatteryStateOfChargeCurrent0 converts data from field 'signals.722' of type string to 'Vehicle.Powertrain.TractionBattery.StateOfCharge.Current' of type float64. Vehicle.Powertrain.TractionBattery.StateOfCharge.Current: Physical state of charge of the high voltage battery, relative to net capacity. This is not necessarily the state of charge being displayed to the customer. Unit: 'percent' Min: '0' Max: '100.0'
func ToPowertrainTransmissionTravelledDistance0 ¶
ToPowertrainTransmissionTravelledDistance0 converts data from field 'signals.645' 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 ToPowertrainTransmissionTravelledDistance1 ¶
ToPowertrainTransmissionTravelledDistance1 converts data from field 'signals.114' 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 ToPowertrainType0 ¶
ToPowertrainType0 converts data from field 'signals.99' of type string to 'Vehicle.Powertrain.Type' of type string. Vehicle.Powertrain.Type: Defines the powertrain type of the vehicle.
func ToPowertrainType1 ¶
ToPowertrainType1 converts data from field 'signals.483' of type string to 'Vehicle.Powertrain.Type' of type string. Vehicle.Powertrain.Type: Defines the powertrain type of the vehicle.
Types ¶
This section is empty.
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Package fingerprint provides decoding for Ruptela fingerprint payloads.
|
Package fingerprint provides decoding for Ruptela fingerprint payloads. |
Package schema contains the embedded schema files for the ruptela devices
|
Package schema contains the embedded schema files for the ruptela devices |
Package status provides a funcions for managing Ruptela status payloads.
|
Package status provides a funcions for managing Ruptela status payloads. |