From bc1452e408f3816d73918423bb40d2c092a205c0 Mon Sep 17 00:00:00 2001 From: Erik Jaegervall Date: Thu, 26 Oct 2023 11:14:53 +0200 Subject: [PATCH] Align Temperature Signals As of today we have a mix of float and int16 for temperature signals, with no real rationale for the difference. This PR changes the int16 signals to instead use float, so after this change all signals with Celisus unit use float. Only intended for VSS 5.0 as this is a backward incompatible change. Signed-off-by: Erik Jaegervall --- spec/Powertrain/CombustionEngine.vspec | 4 ++-- spec/Powertrain/ElectricMotor.vspec | 4 ++-- spec/Powertrain/Transmission.vspec | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/spec/Powertrain/CombustionEngine.vspec b/spec/Powertrain/CombustionEngine.vspec index 12d982366..f73b58c88 100644 --- a/spec/Powertrain/CombustionEngine.vspec +++ b/spec/Powertrain/CombustionEngine.vspec @@ -153,7 +153,7 @@ IdleHours: # Engine coolant temperature # ECT: - datatype: int16 + datatype: float type: sensor unit: celsius description: Engine coolant temperature. @@ -163,7 +163,7 @@ ECT: # Engine Oil Temperature # EOT: - datatype: int16 + datatype: float type: sensor unit: celsius description: Engine oil temperature. diff --git a/spec/Powertrain/ElectricMotor.vspec b/spec/Powertrain/ElectricMotor.vspec index 9d0e4523b..38826f4db 100644 --- a/spec/Powertrain/ElectricMotor.vspec +++ b/spec/Powertrain/ElectricMotor.vspec @@ -57,7 +57,7 @@ Speed: # Motor temperature # Temperature: - datatype: int16 + datatype: float type: sensor unit: celsius description: Motor temperature. @@ -67,7 +67,7 @@ Temperature: # Motor coolant temperature (if applicable) # CoolantTemperature: - datatype: int16 + datatype: float type: sensor unit: celsius description: Motor coolant temperature (if applicable). diff --git a/spec/Powertrain/Transmission.vspec b/spec/Powertrain/Transmission.vspec index ae59b2b1d..8772b3eed 100644 --- a/spec/Powertrain/Transmission.vspec +++ b/spec/Powertrain/Transmission.vspec @@ -110,7 +110,7 @@ GearChangeMode: # Gearbox temperature # Temperature: - datatype: int16 + datatype: float type: sensor unit: celsius description: The current gearbox temperature.