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 ChassisAxleRow1WheelLeftTirePressureFromTesla(jsonData []byte) (ret float64, ts time.Time, err error)
- func ChassisAxleRow1WheelRightTirePressureFromTesla(jsonData []byte) (ret float64, ts time.Time, err error)
- func ChassisAxleRow2WheelLeftTirePressureFromTesla(jsonData []byte) (ret float64, ts time.Time, err error)
- func ChassisAxleRow2WheelRightTirePressureFromTesla(jsonData []byte) (ret float64, ts time.Time, err error)
- func CurrentLocationLatitudeFromTesla(jsonData []byte) (ret float64, ts time.Time, err error)
- func CurrentLocationLongitudeFromTesla(jsonData []byte) (ret float64, ts time.Time, err error)
- func ExteriorAirTemperatureFromTesla(jsonData []byte) (ret float64, ts time.Time, err error)
- func PowertrainRangeFromTesla(jsonData []byte) (ret float64, ts time.Time, err error)
- func PowertrainTractionBatteryChargingAddedEnergyFromTesla(jsonData []byte) (ret float64, ts time.Time, err error)
- func PowertrainTractionBatteryChargingChargeLimitFromTesla(jsonData []byte) (ret float64, ts time.Time, err error)
- func PowertrainTractionBatteryChargingIsChargingFromTesla(jsonData []byte) (ret float64, ts time.Time, err error)
- func PowertrainTractionBatteryCurrentPowerFromTesla(jsonData []byte) (ret float64, ts time.Time, err error)
- func PowertrainTractionBatteryStateOfChargeCurrentFromTesla(jsonData []byte) (ret float64, ts time.Time, err error)
- func PowertrainTransmissionTravelledDistanceFromTesla(jsonData []byte) (ret float64, ts time.Time, err error)
- func SignalsFromTesla(baseSignal vss.Signal, jsonData []byte) ([]vss.Signal, []error)
- func SpeedFromTesla(jsonData []byte) (ret float64, ts time.Time, err error)
- func ToChassisAxleRow1WheelLeftTirePressure0(originalDoc []byte, val float64) (float64, error)
- func ToChassisAxleRow1WheelRightTirePressure0(originalDoc []byte, val float64) (float64, error)
- func ToChassisAxleRow2WheelLeftTirePressure0(originalDoc []byte, val float64) (float64, error)
- func ToChassisAxleRow2WheelRightTirePressure0(originalDoc []byte, val float64) (float64, error)
- func ToCurrentLocationLatitude0(originalDoc []byte, val float64) (float64, error)
- func ToCurrentLocationLongitude0(originalDoc []byte, val float64) (float64, error)
- func ToExteriorAirTemperature0(originalDoc []byte, val float64) (float64, error)
- func ToPowertrainRange0(originalDoc []byte, val float64) (float64, error)
- func ToPowertrainTractionBatteryChargingAddedEnergy0(originalDoc []byte, val float64) (float64, error)
- func ToPowertrainTractionBatteryChargingChargeLimit0(originalDoc []byte, val float64) (float64, error)
- func ToPowertrainTractionBatteryChargingIsCharging0(originalDoc []byte, val string) (float64, error)
- func ToPowertrainTractionBatteryCurrentPower0(originalDoc []byte, val float64) (float64, error)
- func ToPowertrainTractionBatteryStateOfChargeCurrent0(originalDoc []byte, val float64) (float64, error)
- func ToPowertrainTransmissionTravelledDistance0(originalDoc []byte, val float64) (float64, error)
- func ToSpeed0(originalDoc []byte, val float64) (float64, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChassisAxleRow1WheelLeftTirePressureFromTesla ¶
func ChassisAxleRow1WheelLeftTirePressureFromTesla(jsonData []byte) (ret float64, ts time.Time, err error)
ChassisAxleRow1WheelLeftTirePressureFromTesla converts the given JSON data to a float64.
func ChassisAxleRow1WheelRightTirePressureFromTesla ¶
func ChassisAxleRow1WheelRightTirePressureFromTesla(jsonData []byte) (ret float64, ts time.Time, err error)
ChassisAxleRow1WheelRightTirePressureFromTesla converts the given JSON data to a float64.
func ChassisAxleRow2WheelLeftTirePressureFromTesla ¶
func ChassisAxleRow2WheelLeftTirePressureFromTesla(jsonData []byte) (ret float64, ts time.Time, err error)
ChassisAxleRow2WheelLeftTirePressureFromTesla converts the given JSON data to a float64.
func ChassisAxleRow2WheelRightTirePressureFromTesla ¶
func ChassisAxleRow2WheelRightTirePressureFromTesla(jsonData []byte) (ret float64, ts time.Time, err error)
ChassisAxleRow2WheelRightTirePressureFromTesla converts the given JSON data to a float64.
func CurrentLocationLatitudeFromTesla ¶
CurrentLocationLatitudeFromTesla converts the given JSON data to a float64.
func CurrentLocationLongitudeFromTesla ¶
CurrentLocationLongitudeFromTesla converts the given JSON data to a float64.
func ExteriorAirTemperatureFromTesla ¶
ExteriorAirTemperatureFromTesla converts the given JSON data to a float64.
func PowertrainRangeFromTesla ¶
PowertrainRangeFromTesla converts the given JSON data to a float64.
func PowertrainTractionBatteryChargingAddedEnergyFromTesla ¶
func PowertrainTractionBatteryChargingAddedEnergyFromTesla(jsonData []byte) (ret float64, ts time.Time, err error)
PowertrainTractionBatteryChargingAddedEnergyFromTesla converts the given JSON data to a float64.
func PowertrainTractionBatteryChargingChargeLimitFromTesla ¶
func PowertrainTractionBatteryChargingChargeLimitFromTesla(jsonData []byte) (ret float64, ts time.Time, err error)
PowertrainTractionBatteryChargingChargeLimitFromTesla converts the given JSON data to a float64.
func PowertrainTractionBatteryChargingIsChargingFromTesla ¶
func PowertrainTractionBatteryChargingIsChargingFromTesla(jsonData []byte) (ret float64, ts time.Time, err error)
PowertrainTractionBatteryChargingIsChargingFromTesla converts the given JSON data to a float64.
func PowertrainTractionBatteryCurrentPowerFromTesla ¶
func PowertrainTractionBatteryCurrentPowerFromTesla(jsonData []byte) (ret float64, ts time.Time, err error)
PowertrainTractionBatteryCurrentPowerFromTesla converts the given JSON data to a float64.
func PowertrainTractionBatteryStateOfChargeCurrentFromTesla ¶
func PowertrainTractionBatteryStateOfChargeCurrentFromTesla(jsonData []byte) (ret float64, ts time.Time, err error)
PowertrainTractionBatteryStateOfChargeCurrentFromTesla converts the given JSON data to a float64.
func PowertrainTransmissionTravelledDistanceFromTesla ¶
func PowertrainTransmissionTravelledDistanceFromTesla(jsonData []byte) (ret float64, ts time.Time, err error)
PowertrainTransmissionTravelledDistanceFromTesla converts the given JSON data to a float64.
func SignalsFromTesla ¶
SignalsFromV1Data creates a slice of vss.Signal from the given v1 status JSON data. On error, partial results may be returned.
func SpeedFromTesla ¶
SpeedFromTesla converts the given JSON data to a float64.
func ToChassisAxleRow1WheelLeftTirePressure0 ¶
ToChassisAxleRow1WheelLeftTirePressure0 converts data from field 'vehicle_state.tpms_pressure_fl' of type float64 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 'vehicle_state.tpms_pressure_fr' of type float64 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 'vehicle_state.tpms_pressure_rl' of type float64 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 'vehicle_state.tpms_pressure_rr' of type float64 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 ToCurrentLocationLatitude0 ¶
ToCurrentLocationLatitude0 converts data from field 'drive_state.latitude' 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 'drive_state.longitude' 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 ToExteriorAirTemperature0 ¶
ToExteriorAirTemperature0 converts data from field 'climate_state.outside_temp' of type float64 to 'Vehicle.Exterior.AirTemperature' of type float64. Vehicle.Exterior.AirTemperature: Air temperature outside the vehicle. Unit: 'celsius'
func ToPowertrainRange0 ¶
ToPowertrainRange0 converts data from field 'charge_state.battery_range' of type float64 to 'Vehicle.Powertrain.Range' of type float64. Vehicle.Powertrain.Range: Remaining range in meters using all energy sources available in the vehicle. Unit: 'm'
func ToPowertrainTractionBatteryChargingAddedEnergy0 ¶
func ToPowertrainTractionBatteryChargingAddedEnergy0(originalDoc []byte, val float64) (float64, error)
ToPowertrainTractionBatteryChargingAddedEnergy0 converts data from field 'charge_state.charge_energy_added' of type float64 to 'Vehicle.Powertrain.TractionBattery.Charging.AddedEnergy' of type float64. Vehicle.Powertrain.TractionBattery.Charging.AddedEnergy: Amount of charge added to the high voltage battery during the current charging session, expressed in kilowatt-hours. Unit: 'kWh'
func ToPowertrainTractionBatteryChargingChargeLimit0 ¶
func ToPowertrainTractionBatteryChargingChargeLimit0(originalDoc []byte, val float64) (float64, error)
ToPowertrainTractionBatteryChargingChargeLimit0 converts data from field 'charge_state.charge_limit_soc' of type float64 to 'Vehicle.Powertrain.TractionBattery.Charging.ChargeLimit' of type float64. Vehicle.Powertrain.TractionBattery.Charging.ChargeLimit: Target charge limit (state of charge) for battery. Unit: 'percent' Min: '0' Max: '100'
func ToPowertrainTractionBatteryChargingIsCharging0 ¶
func ToPowertrainTractionBatteryChargingIsCharging0(originalDoc []byte, val string) (float64, error)
ToPowertrainTractionBatteryChargingIsCharging0 converts data from field 'charge_state.charging_state' of type string to 'Vehicle.Powertrain.TractionBattery.Charging.IsCharging' of type float64. Vehicle.Powertrain.TractionBattery.Charging.IsCharging: True if charging is ongoing. Charging is considered to be ongoing if energy is flowing from charger to vehicle.
func ToPowertrainTractionBatteryCurrentPower0 ¶
ToPowertrainTractionBatteryCurrentPower0 converts data from field 'drive_state.power' of type float64 to 'Vehicle.Powertrain.TractionBattery.CurrentPower' of type float64. Vehicle.Powertrain.TractionBattery.CurrentPower: Current electrical energy flowing in/out of battery. Positive = Energy flowing in to battery, e.g. during charging. Negative = Energy flowing out of battery, e.g. during driving. Unit: 'W'
func ToPowertrainTractionBatteryStateOfChargeCurrent0 ¶
func ToPowertrainTractionBatteryStateOfChargeCurrent0(originalDoc []byte, val float64) (float64, error)
ToPowertrainTractionBatteryStateOfChargeCurrent0 converts data from field 'charge_state.battery_level' of type float64 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 'vehicle_state.odometer' of type float64 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.