Skip to content

feat: Torque mapping based on battery charge #250

@Avdieienko

Description

@Avdieienko

Description

When the battery is getting close to nearly empty, pulling 80kW would result in a voltage drop so big that it would shut down the inverter (it has a 300V min voltage). Need to implement some throttle pedal mapping that decreases the maximum allowed torque request as the SoC(State of Charge) signal decreases. Until tests (to get proper formulas and limits) we can just linearly limit torque after 60%.

Requirements

  • Read BMS_Pack_SOC reading
  • Implement additional mapping in both config.c and torque_map.c

Additional Notes

BMS_Pack_SOC signal is in MSGID_0x201 message in CAN-S

Metadata

Metadata

Assignees

Labels

PriorityNeeds to be done for CompfeatureNew features

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions