COVESA / vehicle_signal_specification

Vehicle Signal Specification - standardized way to describe automotive data
Mozilla Public License 2.0
322 stars 165 forks source link

Negative values for combustion engine torque #574

Closed ppb2020 closed 9 months ago

ppb2020 commented 1 year ago

The current definition of combustion engine torque is as follows:

#
# Current Torque
#
Torque:
  datatype: uint16
  type: sensor
  unit: Nm
  description: Current engine torque. Shall be reported as 0 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.

It's not clear why a negative value must be ignored. There are situations where the value of negative torque would be useful in some calculations.

Could the datatype be changed to an int16 in order to support negative values? (V4 being a new major versions, it would be the right time for this kind of change.)

erikbosch commented 1 year ago

I see no real problem if it is changed to int16. But then we need to update description as well - I see two options:

Feel free to create a PR.

erikbosch commented 1 year ago

Meeting notes:

ppb2020 commented 1 year ago

Confirming that our sampling showing negative torque for combustion engines was indeed obtained from CAN buses by at least two of our providers, from actual vehicles.

erikbosch commented 9 months ago

Supports negative torque now on master, closing issue