Commit ca0b6be 1 parent d9f1e61 commit ca0b6be Copy full SHA for ca0b6be
File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -67,10 +67,10 @@ static int cadillac_tx_hook(CAN_FIFOMailBox_TypeDef *to_send) {
67
67
int lowest_allowed_torque = min (cadillac_desired_torque_last , 0 ) - CADILLAC_MAX_RATE_UP ;
68
68
69
69
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 ) *
71
71
CADILLAC_DRIVER_TORQUE_FACTOR ;
72
72
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 ) *
74
74
CADILLAC_DRIVER_TORQUE_FACTOR ;
75
75
76
76
// if we've exceeded the applied torque, we must start moving toward 0
You can’t perform that action at this time.
0 commit comments