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
- func ConvertACChargingPowerStringToPowertrainTractionBatteryCurrentPower(val float64) (float64, error)
- func ConvertACChargingPowerStringToPowertrainTractionBatteryCurrentPowerWrapper(wrap string) (float64, error)
- func ConvertChargeAmpsStringToPowertrainTractionBatteryChargingChargeCurrentAC(val float64) (float64, error)
- func ConvertChargeAmpsStringToPowertrainTractionBatteryChargingChargeCurrentACWrapper(wrap string) (float64, error)
- func ConvertChargeLimitSocStringToPowertrainTractionBatteryChargingChargeLimit(val float64) (float64, error)
- func ConvertChargeLimitSocStringToPowertrainTractionBatteryChargingChargeLimitWrapper(wrap string) (float64, error)
- func ConvertChargerVoltageDoubleToPowertrainTractionBatteryChargingChargeVoltageUnknownType(val float64) (float64, error)
- func ConvertChargerVoltageDoubleToPowertrainTractionBatteryChargingChargeVoltageUnknownTypeWrapper(wrap float64) (float64, error)
- func ConvertDCChargingEnergyInStringToPowertrainTractionBatteryChargingAddedEnergy(val float64) (float64, error)
- func ConvertDCChargingEnergyInStringToPowertrainTractionBatteryChargingAddedEnergyWrapper(wrap string) (float64, error)
- func ConvertDCChargingPowerStringToPowertrainTractionBatteryCurrentPower(val float64) (float64, error)
- func ConvertDCChargingPowerStringToPowertrainTractionBatteryCurrentPowerWrapper(wrap string) (float64, error)
- func ConvertDetailedChargeStateDetailedChargeStateValueToPowertrainTractionBatteryChargingIsCharging(val protos.DetailedChargeStateValue) (float64, error)
- func ConvertDetailedChargeStateDetailedChargeStateValueToPowertrainTractionBatteryChargingIsChargingWrapper(wrap protos.DetailedChargeStateValue) (float64, error)
- func ConvertDoorStateStringToCabinDoorRow1DriverSideIsOpen(val string) (float64, error)
- func ConvertDoorStateStringToCabinDoorRow1DriverSideIsOpenWrapper(wrap string) (float64, error)
- func ConvertDoorStateStringToCabinDoorRow1PassengerSideIsOpen(val string) (float64, error)
- func ConvertDoorStateStringToCabinDoorRow1PassengerSideIsOpenWrapper(wrap string) (float64, error)
- func ConvertDoorStateStringToCabinDoorRow2DriverSideIsOpen(val string) (float64, error)
- func ConvertDoorStateStringToCabinDoorRow2DriverSideIsOpenWrapper(wrap string) (float64, error)
- func ConvertDoorStateStringToCabinDoorRow2PassengerSideIsOpen(val string) (float64, error)
- func ConvertDoorStateStringToCabinDoorRow2PassengerSideIsOpenWrapper(wrap string) (float64, error)
- func ConvertEnergyRemainingStringToPowertrainTractionBatteryStateOfChargeCurrentEnergy(val float64) (float64, error)
- func ConvertEnergyRemainingStringToPowertrainTractionBatteryStateOfChargeCurrentEnergyWrapper(wrap string) (float64, error)
- func ConvertEstBatteryRangeStringToPowertrainRange(val float64) (float64, error)
- func ConvertEstBatteryRangeStringToPowertrainRangeWrapper(wrap string) (float64, error)
- func ConvertFdWindowStringToCabinDoorRow1DriverSideWindowIsOpen(val string) (float64, error)
- func ConvertFdWindowStringToCabinDoorRow1DriverSideWindowIsOpenWrapper(wrap string) (float64, error)
- func ConvertFpWindowStringToCabinDoorRow1PassengerSideWindowIsOpen(val string) (float64, error)
- func ConvertFpWindowStringToCabinDoorRow1PassengerSideWindowIsOpenWrapper(wrap string) (float64, error)
- func ConvertLocationLocationValueToCurrentLocationLatitude(val *protos.LocationValue) (float64, error)
- func ConvertLocationLocationValueToCurrentLocationLatitudeWrapper(wrap *protos.LocationValue) (float64, error)
- func ConvertLocationLocationValueToCurrentLocationLongitude(val *protos.LocationValue) (float64, error)
- func ConvertLocationLocationValueToCurrentLocationLongitudeWrapper(wrap *protos.LocationValue) (float64, error)
- func ConvertOdometerStringToPowertrainTransmissionTravelledDistance(val float64) (float64, error)
- func ConvertOdometerStringToPowertrainTransmissionTravelledDistanceWrapper(wrap string) (float64, error)
- func ConvertOutsideTempStringToExteriorAirTemperature(val float64) (float64, error)
- func ConvertOutsideTempStringToExteriorAirTemperatureWrapper(wrap string) (float64, error)
- func ConvertRdWindowStringToCabinDoorRow2DriverSideWindowIsOpen(val string) (float64, error)
- func ConvertRdWindowStringToCabinDoorRow2DriverSideWindowIsOpenWrapper(wrap string) (float64, error)
- func ConvertRpWindowStringToCabinDoorRow2PassengerSideWindowIsOpen(val string) (float64, error)
- func ConvertRpWindowStringToCabinDoorRow2PassengerSideWindowIsOpenWrapper(wrap string) (float64, error)
- func ConvertSocStringToPowertrainTractionBatteryStateOfChargeCurrent(val float64) (float64, error)
- func ConvertSocStringToPowertrainTractionBatteryStateOfChargeCurrentWrapper(wrap string) (float64, error)
- func ConvertTpmsPressureFlStringToChassisAxleRow1WheelLeftTirePressure(val float64) (float64, error)
- func ConvertTpmsPressureFlStringToChassisAxleRow1WheelLeftTirePressureWrapper(wrap string) (float64, error)
- func ConvertTpmsPressureFrStringToChassisAxleRow1WheelRightTirePressure(val float64) (float64, error)
- func ConvertTpmsPressureFrStringToChassisAxleRow1WheelRightTirePressureWrapper(wrap string) (float64, error)
- func ConvertTpmsPressureRlStringToChassisAxleRow2WheelLeftTirePressure(val float64) (float64, error)
- func ConvertTpmsPressureRlStringToChassisAxleRow2WheelLeftTirePressureWrapper(wrap string) (float64, error)
- func ConvertTpmsPressureRrStringToChassisAxleRow2WheelRightTirePressure(val float64) (float64, error)
- func ConvertTpmsPressureRrStringToChassisAxleRow2WheelRightTirePressureWrapper(wrap string) (float64, error)
- func ConvertVehicleSpeedStringToSpeed(val float64) (float64, error)
- func ConvertVehicleSpeedStringToSpeedWrapper(wrap string) (float64, error)
- func FingerprintConvert(event cloudevent.RawEvent) (cloudevent.Fingerprint, error)
- func IsFingerprint(event cloudevent.RawEvent) bool
- func ProcessPayload(payload *protos.Payload, tokenID uint32, source string) ([]vss.Signal, []error)
- func SignalConvert(event cloudevent.RawEvent) ([]vss.Signal, error)
- type TelemetryData
Constants ¶
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 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 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 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 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 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 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
ConvertDoorStateStringToCabinDoorRow1DriverSideIsOpen converts a telemetry datum with key DoorState to the VSS signal CabinDoorRow1DriverSideIsOpen.
func ConvertDoorStateStringToCabinDoorRow1DriverSideIsOpenWrapper ¶ added in v0.5.4
func ConvertDoorStateStringToCabinDoorRow1PassengerSideIsOpen ¶ added in v0.5.4
ConvertDoorStateStringToCabinDoorRow1PassengerSideIsOpen converts a telemetry datum with key DoorState to the VSS signal CabinDoorRow1PassengerSideIsOpen.
func ConvertDoorStateStringToCabinDoorRow1PassengerSideIsOpenWrapper ¶ added in v0.5.4
func ConvertDoorStateStringToCabinDoorRow2DriverSideIsOpen ¶ added in v0.5.4
ConvertDoorStateStringToCabinDoorRow2DriverSideIsOpen converts a telemetry datum with key DoorState to the VSS signal CabinDoorRow2DriverSideIsOpen.
func ConvertDoorStateStringToCabinDoorRow2DriverSideIsOpenWrapper ¶ added in v0.5.4
func ConvertDoorStateStringToCabinDoorRow2PassengerSideIsOpen ¶ added in v0.5.4
ConvertDoorStateStringToCabinDoorRow2PassengerSideIsOpen converts a telemetry datum with key DoorState to the VSS signal CabinDoorRow2PassengerSideIsOpen.
func ConvertDoorStateStringToCabinDoorRow2PassengerSideIsOpenWrapper ¶ added in v0.5.4
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 ConvertEstBatteryRangeStringToPowertrainRange ¶ added in v0.5.4
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 ConvertFdWindowStringToCabinDoorRow1DriverSideWindowIsOpen ¶ added in v0.5.4
ConvertFdWindowStringToCabinDoorRow1DriverSideWindowIsOpen converts a telemetry datum with key FdWindow to the VSS signal CabinDoorRow1DriverSideWindowIsOpen.
func ConvertFdWindowStringToCabinDoorRow1DriverSideWindowIsOpenWrapper ¶ added in v0.5.4
func ConvertFpWindowStringToCabinDoorRow1PassengerSideWindowIsOpen ¶ added in v0.5.4
ConvertFpWindowStringToCabinDoorRow1PassengerSideWindowIsOpen converts a telemetry datum with key FpWindow to the VSS signal CabinDoorRow1PassengerSideWindowIsOpen.
func ConvertFpWindowStringToCabinDoorRow1PassengerSideWindowIsOpenWrapper ¶ added in v0.5.4
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
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 ConvertOutsideTempStringToExteriorAirTemperature ¶ added in v0.5.4
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 ConvertRdWindowStringToCabinDoorRow2DriverSideWindowIsOpen ¶ added in v0.5.4
ConvertRdWindowStringToCabinDoorRow2DriverSideWindowIsOpen converts a telemetry datum with key RdWindow to the VSS signal CabinDoorRow2DriverSideWindowIsOpen.
func ConvertRdWindowStringToCabinDoorRow2DriverSideWindowIsOpenWrapper ¶ added in v0.5.4
func ConvertRpWindowStringToCabinDoorRow2PassengerSideWindowIsOpen ¶ added in v0.5.4
ConvertRpWindowStringToCabinDoorRow2PassengerSideWindowIsOpen converts a telemetry datum with key RpWindow to the VSS signal CabinDoorRow2PassengerSideWindowIsOpen.
func ConvertRpWindowStringToCabinDoorRow2PassengerSideWindowIsOpenWrapper ¶ added in v0.5.4
func ConvertSocStringToPowertrainTractionBatteryStateOfChargeCurrent ¶ added in v0.5.4
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 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 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 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 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 ConvertVehicleSpeedStringToSpeed ¶ added in v0.5.4
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 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 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"`
}
Source Files
¶
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. |