diff --git a/opendbc/sunnypilot/car/honda/interface_ext.py b/opendbc/sunnypilot/car/honda/interface_ext.py index 344aad740e6..3e2f606db12 100644 --- a/opendbc/sunnypilot/car/honda/interface_ext.py +++ b/opendbc/sunnypilot/car/honda/interface_ext.py @@ -13,12 +13,16 @@ CAR.HONDA_INSIGHT, }) +# 0xE4 per unit of output: the EPS's own command clamp. The Clarity, Civic (Nidec and Bosch) and Insight EPS firmware +# clamps its command input at key 1663 = E4 3840, stock firmware and PTM builds alike (the PTM builds keep the stock +# E4 decode; read from the stock TRW, TBA-A030, TEG-A010, TBA-C020, TBA-C120, TGG-A120 and TXM-A040 images), so above +# 3840 the request did nothing. The CR-V's (TLA) clamps at 1774 = E4 4096. _EXTENDED_TORQUE_LIMITS = { CAR.HONDA_CLARITY: 3840, CAR.HONDA_CIVIC: 3840, - CAR.HONDA_CIVIC_BOSCH: 4096, + CAR.HONDA_CIVIC_BOSCH: 3840, CAR.HONDA_CIVIC_BOSCH_DIESEL: 4096, - CAR.HONDA_INSIGHT: 4096, + CAR.HONDA_INSIGHT: 3840, CAR.HONDA_NBOX_2G: 4096, CAR.HONDA_CRV_5G: 4096, } diff --git a/opendbc/sunnypilot/car/honda/test_honda.py b/opendbc/sunnypilot/car/honda/test_honda.py index 2d9dfeabe83..084e086f7f3 100644 --- a/opendbc/sunnypilot/car/honda/test_honda.py +++ b/opendbc/sunnypilot/car/honda/test_honda.py @@ -75,11 +75,11 @@ def test_torque_mod_static_pid_tune(self, car_name): torque_limits = { CAR.HONDA_CIVIC: 3840, - CAR.HONDA_CIVIC_BOSCH: 4096, + CAR.HONDA_CIVIC_BOSCH: 3840, CAR.HONDA_CIVIC_BOSCH_DIESEL: 4096, CAR.HONDA_CLARITY: 3840, CAR.HONDA_CRV_5G: 4096, - CAR.HONDA_INSIGHT: 4096, + CAR.HONDA_INSIGHT: 3840, } if car_name in torque_limits: torque_limit = torque_limits[car_name]