Skip to content

Commit

Permalink
Support negative torque for combustion engine
Browse files Browse the repository at this point in the history
Some combustion engine vehicles report a negative torque under braking conditions. This cannot be properly reflected by the current definition of engine torque as it is an unsigned integer.

This change proposes modifying the combustion engine torque definition from an unsigned integer to an integer.

Signed-off-by: Pierre Pierre Blais [email protected]
  • Loading branch information
ppb2020 authored and Pierre Pierre Blais committed Oct 24, 2023
1 parent 2b38850 commit f6e189d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions spec/Powertrain/CombustionEngine.vspec
Original file line number Diff line number Diff line change
Expand Up @@ -223,12 +223,11 @@ Power:
# Current Torque
#
Torque:
datatype: uint16
datatype: int16
type: sensor
unit: Nm
description: Current engine torque. Shall be reported as 0 during engine breaking.
description: Current engine torque. Shall be reported as a negative number during engine breaking.
comment: During engine breaking the engine delivers a negative torque to the transmission.
This negative torque shall be ignored, instead 0 shall be reported.

#
# Diesel Exhaust Fluid
Expand Down

0 comments on commit f6e189d

Please sign in to comment.