telemetry

package
v0.5.4 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package telemetry converts batches of Tesla protobuf Payloads into VSS signals.

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

Index

Constants

View Source
const DataVersion = "fleet_telemetry/v1.0.0"

Variables

This section is empty.

Functions

func ConvertACChargingPowerStringToPowertrainTractionBatteryCurrentPower added in v0.5.4

func ConvertACChargingPowerStringToPowertrainTractionBatteryCurrentPower(val float64) (float64, error)

ConvertACChargingPowerStringToPowertrainTractionBatteryCurrentPower converts a telemetry datum with key ACChargingPower to the VSS signal PowertrainTractionBatteryCurrentPower. Before being passed to this function, the string value is parsed into a float64. Before being passed to this function, the units are converted using KilowattsToWatts

func ConvertACChargingPowerStringToPowertrainTractionBatteryCurrentPowerWrapper added in v0.5.4

func ConvertACChargingPowerStringToPowertrainTractionBatteryCurrentPowerWrapper(wrap string) (float64, error)

func ConvertChargeAmpsStringToPowertrainTractionBatteryChargingChargeCurrentAC added in v0.5.4

func ConvertChargeAmpsStringToPowertrainTractionBatteryChargingChargeCurrentAC(val float64) (float64, error)

ConvertChargeAmpsStringToPowertrainTractionBatteryChargingChargeCurrentAC converts a telemetry datum with key ChargeAmps to the VSS signal PowertrainTractionBatteryChargingChargeCurrentAC. Before being passed to this function, the string value is parsed into a float64.

func ConvertChargeAmpsStringToPowertrainTractionBatteryChargingChargeCurrentACWrapper added in v0.5.4

func ConvertChargeAmpsStringToPowertrainTractionBatteryChargingChargeCurrentACWrapper(wrap string) (float64, error)

func ConvertChargeLimitSocStringToPowertrainTractionBatteryChargingChargeLimit added in v0.5.4

func ConvertChargeLimitSocStringToPowertrainTractionBatteryChargingChargeLimit(val float64) (float64, error)

ConvertChargeLimitSocStringToPowertrainTractionBatteryChargingChargeLimit converts a telemetry datum with key ChargeLimitSoc to the VSS signal PowertrainTractionBatteryChargingChargeLimit. Before being passed to this function, the string value is parsed into a float64.

func ConvertChargeLimitSocStringToPowertrainTractionBatteryChargingChargeLimitWrapper added in v0.5.4

func ConvertChargeLimitSocStringToPowertrainTractionBatteryChargingChargeLimitWrapper(wrap string) (float64, error)

func ConvertChargerVoltageDoubleToPowertrainTractionBatteryChargingChargeVoltageUnknownType added in v0.5.4

func ConvertChargerVoltageDoubleToPowertrainTractionBatteryChargingChargeVoltageUnknownType(val float64) (float64, error)

ConvertChargerVoltageDoubleToPowertrainTractionBatteryChargingChargeVoltageUnknownType converts a telemetry datum with key ChargerVoltage to the VSS signal PowertrainTractionBatteryChargingChargeVoltageUnknownType.

func ConvertChargerVoltageDoubleToPowertrainTractionBatteryChargingChargeVoltageUnknownTypeWrapper added in v0.5.4

func ConvertChargerVoltageDoubleToPowertrainTractionBatteryChargingChargeVoltageUnknownTypeWrapper(wrap float64) (float64, error)

func ConvertDCChargingEnergyInStringToPowertrainTractionBatteryChargingAddedEnergy added in v0.5.4

func ConvertDCChargingEnergyInStringToPowertrainTractionBatteryChargingAddedEnergy(val float64) (float64, error)

ConvertDCChargingEnergyInStringToPowertrainTractionBatteryChargingAddedEnergy converts a telemetry datum with key DCChargingEnergyIn to the VSS signal PowertrainTractionBatteryChargingAddedEnergy. Before being passed to this function, the string value is parsed into a float64.

func ConvertDCChargingEnergyInStringToPowertrainTractionBatteryChargingAddedEnergyWrapper added in v0.5.4

func ConvertDCChargingEnergyInStringToPowertrainTractionBatteryChargingAddedEnergyWrapper(wrap string) (float64, error)

func ConvertDCChargingPowerStringToPowertrainTractionBatteryCurrentPower added in v0.5.4

func ConvertDCChargingPowerStringToPowertrainTractionBatteryCurrentPower(val float64) (float64, error)

ConvertDCChargingPowerStringToPowertrainTractionBatteryCurrentPower converts a telemetry datum with key DCChargingPower to the VSS signal PowertrainTractionBatteryCurrentPower. Before being passed to this function, the string value is parsed into a float64. Before being passed to this function, the units are converted using KilowattsToWatts

func ConvertDCChargingPowerStringToPowertrainTractionBatteryCurrentPowerWrapper added in v0.5.4

func ConvertDCChargingPowerStringToPowertrainTractionBatteryCurrentPowerWrapper(wrap string) (float64, error)

func ConvertDetailedChargeStateDetailedChargeStateValueToPowertrainTractionBatteryChargingIsCharging added in v0.5.4

func ConvertDetailedChargeStateDetailedChargeStateValueToPowertrainTractionBatteryChargingIsCharging(val protos.DetailedChargeStateValue) (float64, error)

ConvertDetailedChargeStateDetailedChargeStateValueToPowertrainTractionBatteryChargingIsCharging converts a telemetry datum with key DetailedChargeState to the VSS signal PowertrainTractionBatteryChargingIsCharging.

func ConvertDetailedChargeStateDetailedChargeStateValueToPowertrainTractionBatteryChargingIsChargingWrapper added in v0.5.4

func ConvertDetailedChargeStateDetailedChargeStateValueToPowertrainTractionBatteryChargingIsChargingWrapper(wrap protos.DetailedChargeStateValue) (float64, error)

func ConvertDoorStateStringToCabinDoorRow1DriverSideIsOpen added in v0.5.4

func ConvertDoorStateStringToCabinDoorRow1DriverSideIsOpen(val string) (float64, error)

ConvertDoorStateStringToCabinDoorRow1DriverSideIsOpen converts a telemetry datum with key DoorState to the VSS signal CabinDoorRow1DriverSideIsOpen.

func ConvertDoorStateStringToCabinDoorRow1DriverSideIsOpenWrapper added in v0.5.4

func ConvertDoorStateStringToCabinDoorRow1DriverSideIsOpenWrapper(wrap string) (float64, error)

func ConvertDoorStateStringToCabinDoorRow1PassengerSideIsOpen added in v0.5.4

func ConvertDoorStateStringToCabinDoorRow1PassengerSideIsOpen(val string) (float64, error)

ConvertDoorStateStringToCabinDoorRow1PassengerSideIsOpen converts a telemetry datum with key DoorState to the VSS signal CabinDoorRow1PassengerSideIsOpen.

func ConvertDoorStateStringToCabinDoorRow1PassengerSideIsOpenWrapper added in v0.5.4

func ConvertDoorStateStringToCabinDoorRow1PassengerSideIsOpenWrapper(wrap string) (float64, error)

func ConvertDoorStateStringToCabinDoorRow2DriverSideIsOpen added in v0.5.4

func ConvertDoorStateStringToCabinDoorRow2DriverSideIsOpen(val string) (float64, error)

ConvertDoorStateStringToCabinDoorRow2DriverSideIsOpen converts a telemetry datum with key DoorState to the VSS signal CabinDoorRow2DriverSideIsOpen.

func ConvertDoorStateStringToCabinDoorRow2DriverSideIsOpenWrapper added in v0.5.4

func ConvertDoorStateStringToCabinDoorRow2DriverSideIsOpenWrapper(wrap string) (float64, error)

func ConvertDoorStateStringToCabinDoorRow2PassengerSideIsOpen added in v0.5.4

func ConvertDoorStateStringToCabinDoorRow2PassengerSideIsOpen(val string) (float64, error)

ConvertDoorStateStringToCabinDoorRow2PassengerSideIsOpen converts a telemetry datum with key DoorState to the VSS signal CabinDoorRow2PassengerSideIsOpen.

func ConvertDoorStateStringToCabinDoorRow2PassengerSideIsOpenWrapper added in v0.5.4

func ConvertDoorStateStringToCabinDoorRow2PassengerSideIsOpenWrapper(wrap string) (float64, error)

func ConvertEnergyRemainingStringToPowertrainTractionBatteryStateOfChargeCurrentEnergy added in v0.5.4

func ConvertEnergyRemainingStringToPowertrainTractionBatteryStateOfChargeCurrentEnergy(val float64) (float64, error)

ConvertEnergyRemainingStringToPowertrainTractionBatteryStateOfChargeCurrentEnergy converts a telemetry datum with key EnergyRemaining to the VSS signal PowertrainTractionBatteryStateOfChargeCurrentEnergy. Before being passed to this function, the string value is parsed into a float64.

func ConvertEnergyRemainingStringToPowertrainTractionBatteryStateOfChargeCurrentEnergyWrapper added in v0.5.4

func ConvertEnergyRemainingStringToPowertrainTractionBatteryStateOfChargeCurrentEnergyWrapper(wrap string) (float64, error)

func ConvertEstBatteryRangeStringToPowertrainRange added in v0.5.4

func ConvertEstBatteryRangeStringToPowertrainRange(val float64) (float64, error)

ConvertEstBatteryRangeStringToPowertrainRange converts a telemetry datum with key EstBatteryRange to the VSS signal PowertrainRange. Before being passed to this function, the string value is parsed into a float64.

func ConvertEstBatteryRangeStringToPowertrainRangeWrapper added in v0.5.4

func ConvertEstBatteryRangeStringToPowertrainRangeWrapper(wrap string) (float64, error)

func ConvertFdWindowStringToCabinDoorRow1DriverSideWindowIsOpen added in v0.5.4

func ConvertFdWindowStringToCabinDoorRow1DriverSideWindowIsOpen(val string) (float64, error)

ConvertFdWindowStringToCabinDoorRow1DriverSideWindowIsOpen converts a telemetry datum with key FdWindow to the VSS signal CabinDoorRow1DriverSideWindowIsOpen.

func ConvertFdWindowStringToCabinDoorRow1DriverSideWindowIsOpenWrapper added in v0.5.4

func ConvertFdWindowStringToCabinDoorRow1DriverSideWindowIsOpenWrapper(wrap string) (float64, error)

func ConvertFpWindowStringToCabinDoorRow1PassengerSideWindowIsOpen added in v0.5.4

func ConvertFpWindowStringToCabinDoorRow1PassengerSideWindowIsOpen(val string) (float64, error)

ConvertFpWindowStringToCabinDoorRow1PassengerSideWindowIsOpen converts a telemetry datum with key FpWindow to the VSS signal CabinDoorRow1PassengerSideWindowIsOpen.

func ConvertFpWindowStringToCabinDoorRow1PassengerSideWindowIsOpenWrapper added in v0.5.4

func ConvertFpWindowStringToCabinDoorRow1PassengerSideWindowIsOpenWrapper(wrap string) (float64, error)

func ConvertLocationLocationValueToCurrentLocationLatitude added in v0.5.4

func ConvertLocationLocationValueToCurrentLocationLatitude(val *protos.LocationValue) (float64, error)

ConvertLocationLocationValueToCurrentLocationLatitude converts a telemetry datum with key Location to the VSS signal CurrentLocationLatitude.

func ConvertLocationLocationValueToCurrentLocationLatitudeWrapper added in v0.5.4

func ConvertLocationLocationValueToCurrentLocationLatitudeWrapper(wrap *protos.LocationValue) (float64, error)

func ConvertLocationLocationValueToCurrentLocationLongitude added in v0.5.4

func ConvertLocationLocationValueToCurrentLocationLongitude(val *protos.LocationValue) (float64, error)

ConvertLocationLocationValueToCurrentLocationLongitude converts a telemetry datum with key Location to the VSS signal CurrentLocationLongitude.

func ConvertLocationLocationValueToCurrentLocationLongitudeWrapper added in v0.5.4

func ConvertLocationLocationValueToCurrentLocationLongitudeWrapper(wrap *protos.LocationValue) (float64, error)

func ConvertOdometerStringToPowertrainTransmissionTravelledDistance added in v0.5.4

func ConvertOdometerStringToPowertrainTransmissionTravelledDistance(val float64) (float64, error)

ConvertOdometerStringToPowertrainTransmissionTravelledDistance converts a telemetry datum with key Odometer to the VSS signal PowertrainTransmissionTravelledDistance. Before being passed to this function, the string value is parsed into a float64. Before being passed to this function, the units are converted using MilesToKilometers

func ConvertOdometerStringToPowertrainTransmissionTravelledDistanceWrapper added in v0.5.4

func ConvertOdometerStringToPowertrainTransmissionTravelledDistanceWrapper(wrap string) (float64, error)

func ConvertOutsideTempStringToExteriorAirTemperature added in v0.5.4

func ConvertOutsideTempStringToExteriorAirTemperature(val float64) (float64, error)

ConvertOutsideTempStringToExteriorAirTemperature converts a telemetry datum with key OutsideTemp to the VSS signal ExteriorAirTemperature. Before being passed to this function, the string value is parsed into a float64.

func ConvertOutsideTempStringToExteriorAirTemperatureWrapper added in v0.5.4

func ConvertOutsideTempStringToExteriorAirTemperatureWrapper(wrap string) (float64, error)

func ConvertRdWindowStringToCabinDoorRow2DriverSideWindowIsOpen added in v0.5.4

func ConvertRdWindowStringToCabinDoorRow2DriverSideWindowIsOpen(val string) (float64, error)

ConvertRdWindowStringToCabinDoorRow2DriverSideWindowIsOpen converts a telemetry datum with key RdWindow to the VSS signal CabinDoorRow2DriverSideWindowIsOpen.

func ConvertRdWindowStringToCabinDoorRow2DriverSideWindowIsOpenWrapper added in v0.5.4

func ConvertRdWindowStringToCabinDoorRow2DriverSideWindowIsOpenWrapper(wrap string) (float64, error)

func ConvertRpWindowStringToCabinDoorRow2PassengerSideWindowIsOpen added in v0.5.4

func ConvertRpWindowStringToCabinDoorRow2PassengerSideWindowIsOpen(val string) (float64, error)

ConvertRpWindowStringToCabinDoorRow2PassengerSideWindowIsOpen converts a telemetry datum with key RpWindow to the VSS signal CabinDoorRow2PassengerSideWindowIsOpen.

func ConvertRpWindowStringToCabinDoorRow2PassengerSideWindowIsOpenWrapper added in v0.5.4

func ConvertRpWindowStringToCabinDoorRow2PassengerSideWindowIsOpenWrapper(wrap string) (float64, error)

func ConvertSocStringToPowertrainTractionBatteryStateOfChargeCurrent added in v0.5.4

func ConvertSocStringToPowertrainTractionBatteryStateOfChargeCurrent(val float64) (float64, error)

ConvertSocStringToPowertrainTractionBatteryStateOfChargeCurrent converts a telemetry datum with key Soc to the VSS signal PowertrainTractionBatteryStateOfChargeCurrent. Before being passed to this function, the string value is parsed into a float64.

func ConvertSocStringToPowertrainTractionBatteryStateOfChargeCurrentWrapper added in v0.5.4

func ConvertSocStringToPowertrainTractionBatteryStateOfChargeCurrentWrapper(wrap string) (float64, error)

func ConvertTpmsPressureFlStringToChassisAxleRow1WheelLeftTirePressure added in v0.5.4

func ConvertTpmsPressureFlStringToChassisAxleRow1WheelLeftTirePressure(val float64) (float64, error)

ConvertTpmsPressureFlStringToChassisAxleRow1WheelLeftTirePressure converts a telemetry datum with key TpmsPressureFl to the VSS signal ChassisAxleRow1WheelLeftTirePressure. Before being passed to this function, the string value is parsed into a float64. Before being passed to this function, the units are converted using AtmospheresToKilopascals

func ConvertTpmsPressureFlStringToChassisAxleRow1WheelLeftTirePressureWrapper added in v0.5.4

func ConvertTpmsPressureFlStringToChassisAxleRow1WheelLeftTirePressureWrapper(wrap string) (float64, error)

func ConvertTpmsPressureFrStringToChassisAxleRow1WheelRightTirePressure added in v0.5.4

func ConvertTpmsPressureFrStringToChassisAxleRow1WheelRightTirePressure(val float64) (float64, error)

ConvertTpmsPressureFrStringToChassisAxleRow1WheelRightTirePressure converts a telemetry datum with key TpmsPressureFr to the VSS signal ChassisAxleRow1WheelRightTirePressure. Before being passed to this function, the string value is parsed into a float64. Before being passed to this function, the units are converted using AtmospheresToKilopascals

func ConvertTpmsPressureFrStringToChassisAxleRow1WheelRightTirePressureWrapper added in v0.5.4

func ConvertTpmsPressureFrStringToChassisAxleRow1WheelRightTirePressureWrapper(wrap string) (float64, error)

func ConvertTpmsPressureRlStringToChassisAxleRow2WheelLeftTirePressure added in v0.5.4

func ConvertTpmsPressureRlStringToChassisAxleRow2WheelLeftTirePressure(val float64) (float64, error)

ConvertTpmsPressureRlStringToChassisAxleRow2WheelLeftTirePressure converts a telemetry datum with key TpmsPressureRl to the VSS signal ChassisAxleRow2WheelLeftTirePressure. Before being passed to this function, the string value is parsed into a float64. Before being passed to this function, the units are converted using AtmospheresToKilopascals

func ConvertTpmsPressureRlStringToChassisAxleRow2WheelLeftTirePressureWrapper added in v0.5.4

func ConvertTpmsPressureRlStringToChassisAxleRow2WheelLeftTirePressureWrapper(wrap string) (float64, error)

func ConvertTpmsPressureRrStringToChassisAxleRow2WheelRightTirePressure added in v0.5.4

func ConvertTpmsPressureRrStringToChassisAxleRow2WheelRightTirePressure(val float64) (float64, error)

ConvertTpmsPressureRrStringToChassisAxleRow2WheelRightTirePressure converts a telemetry datum with key TpmsPressureRr to the VSS signal ChassisAxleRow2WheelRightTirePressure. Before being passed to this function, the string value is parsed into a float64. Before being passed to this function, the units are converted using AtmospheresToKilopascals

func ConvertTpmsPressureRrStringToChassisAxleRow2WheelRightTirePressureWrapper added in v0.5.4

func ConvertTpmsPressureRrStringToChassisAxleRow2WheelRightTirePressureWrapper(wrap string) (float64, error)

func ConvertVehicleSpeedStringToSpeed added in v0.5.4

func ConvertVehicleSpeedStringToSpeed(val float64) (float64, error)

ConvertVehicleSpeedStringToSpeed converts a telemetry datum with key VehicleSpeed to the VSS signal Speed. Before being passed to this function, the string value is parsed into a float64. Before being passed to this function, the units are converted using MilesPerHourToKilometersPerHour

func ConvertVehicleSpeedStringToSpeedWrapper added in v0.5.4

func ConvertVehicleSpeedStringToSpeedWrapper(wrap string) (float64, error)

func FingerprintConvert

func FingerprintConvert(event cloudevent.RawEvent) (cloudevent.Fingerprint, error)

FingerprintConvert extracts a fingerprint from the first Fleet Telemetry protobuf Payload. We expect this to always succeed.

func IsFingerprint

func IsFingerprint(event cloudevent.RawEvent) bool

IsFingerprint returns whether the Fleet Telemetry batch contains an extractable VIN. This should always return true.

func ProcessPayload added in v0.5.4

func ProcessPayload(payload *protos.Payload, tokenID uint32, source string) ([]vss.Signal, []error)

func SignalConvert

func SignalConvert(event cloudevent.RawEvent) ([]vss.Signal, error)

SignalConvert converts a CloudEvent containing a batch of Fleet Telemetry protobuf Payloads into DIMO's VSS rows.

Types

type TelemetryData

type TelemetryData struct {
	Payloads [][]byte `json:"payloads"`
}

Directories

Path Synopsis
Package main contains the code generation command for transforming a definitions file into code that executes a conversion from Tesla Fleet Telemetry protobufs into VSS signals.
Package main contains the code generation command for transforming a definitions file into code that executes a conversion from Tesla Fleet Telemetry protobufs into VSS signals.
Package schema merely embeds the definitions file for conversions from Tesla Fleet Telemetry to VSS signals.
Package schema merely embeds the definitions file for conversions from Tesla Fleet Telemetry to VSS signals.
Package unit converts between commonly used units of measure for vehicle signals.
Package unit converts between commonly used units of measure for vehicle signals.

Jump to

Keyboard shortcuts

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