Skip to content

Commit

Permalink
remove device battery signal
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinJoiner committed Oct 9, 2024
1 parent d118b05 commit 7771fcd
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 83 deletions.
27 changes: 0 additions & 27 deletions pkg/ruptela/multiplier-offset.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion pkg/ruptela/payload-status_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@ var (
{TokenID: 33, Timestamp: ts, Name: vss.FieldOBDDistanceWithMIL, ValueNumber: 0, Source: "ruptela/TODO"},
{TokenID: 33, Timestamp: ts, Name: vss.FieldPowertrainCombustionEngineTPS, ValueNumber: 0, Source: "ruptela/TODO"},
{TokenID: 33, Timestamp: ts, Name: vss.FieldPowertrainTransmissionTravelledDistance, ValueNumber: 0, Source: "ruptela/TODO"},
{TokenID: 33, Timestamp: ts, Name: vss.FieldLowVoltageBatteryCurrentVoltage, ValueNumber: 4224, Source: "ruptela/TODO"},
{TokenID: 33, Timestamp: ts, Name: vss.FieldSpeed, ValueNumber: 0, Source: "ruptela/TODO"},
}
)
15 changes: 8 additions & 7 deletions pkg/ruptela/schema/ruptela-definitions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,6 @@
requiredPrivileges:
- VEHICLE_NON_LOCATION_DATA

- vspecName: Vehicle.LowVoltageBattery.CurrentVoltage
conversions:
- originalName: "signals.30" # Battery voltage
originalType: string
requiredPrivileges:
- VEHICLE_NON_LOCATION_DATA

- vspecName: Vehicle.OBD.RunTime
conversions:
- originalName: "signals.107" # OBD time since engine start
Expand Down Expand Up @@ -188,6 +181,14 @@
originalType: string
requiredPrivileges:
- VEHICLE_NON_LOCATION_DATA

# TODO this is the voltage of the device not the vehicle
# - vspecName: Vehicle.LowVoltageBattery.CurrentVoltage
# conversions:
# - originalName: "signals.30" # Battery voltage
# originalType: string
# requiredPrivileges:
# - VEHICLE_NON_LOCATION_DATA

# TODO we only get batteryCapacity in percent SOH
# - vspecName: Vehicle.Powertrain.TractionBattery.GrossCapacity
Expand Down
7 changes: 0 additions & 7 deletions pkg/ruptela/vehicle-convert-funcs_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

41 changes: 0 additions & 41 deletions pkg/ruptela/vehicle-v1-convert_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 7771fcd

Please sign in to comment.