Skip to content

Commit ca0b6be

Browse files
committed
Cadillac: fixed typo. Need better regression tests to catch this
1 parent d9f1e61 commit ca0b6be

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

board/safety/safety_cadillac.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,10 @@ static int cadillac_tx_hook(CAN_FIFOMailBox_TypeDef *to_send) {
6767
int lowest_allowed_torque = min(cadillac_desired_torque_last, 0) - CADILLAC_MAX_RATE_UP;
6868

6969
int driver_torque_max_limit = CADILLAC_STEER_MAX +
70-
(CADILLAC_DRIVER_TORQUE_ALLOWANCE + cadillac_torque_driver.max) *
70+
(CADILLAC_DRIVER_TORQUE_ALLOWANCE + cadillac_torque_driver.max) *
7171
CADILLAC_DRIVER_TORQUE_FACTOR;
7272
int driver_torque_min_limit = -CADILLAC_STEER_MAX +
73-
(-CADILLAC_DRIVER_TORQUE_ALLOWANCE + cadillac_torque_driver.max) *
73+
(-CADILLAC_DRIVER_TORQUE_ALLOWANCE + cadillac_torque_driver.min) *
7474
CADILLAC_DRIVER_TORQUE_FACTOR;
7575

7676
// if we've exceeded the applied torque, we must start moving toward 0

0 commit comments

Comments
 (0)