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 integre to an integer.

Signed-off-by: Pierre Pierre Blais [email protected]
  • Loading branch information
Pierre Pierre Blais committed Oct 5, 2023
1 parent ee2c978 commit cd6cb5d
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 cd6cb5d

Please sign in to comment.