feat: expand vehicle data platform capabilities
This commit is contained in:
@@ -24,7 +24,7 @@ func TestDataFrameMapsFeichiFields(t *testing.T) {
|
||||
"2607": "1", "2608": "3", "2609": "48",
|
||||
"2610": "1", "2611": "9", "2612": "37",
|
||||
"2003": "1:3.900_3.901_3.902",
|
||||
"2103": "1:35_36_37",
|
||||
"2103": "1:35_36_37", "2115": "44", "2119": "6.0", "100016": "20.8",
|
||||
}
|
||||
frame, err := (Encoder{}).DataFrame(CommandRealtime, "LTEST32960VIN0001", at, record)
|
||||
if err != nil {
|
||||
@@ -49,6 +49,9 @@ func TestDataFrameMapsFeichiFields(t *testing.T) {
|
||||
if got := env.Fields["longitude"]; got != 113.2644 {
|
||||
t.Fatalf("longitude = %#v", got)
|
||||
}
|
||||
if _, exists := env.Fields["gd_fc_vehicle_hydrogen_mass_kg"]; exists {
|
||||
t.Fatal("bridge must not derive hydrogen mass from platform percentage")
|
||||
}
|
||||
}
|
||||
|
||||
func TestDataFrameSplitsMoreThan255CellVoltages(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user