Skip to content

Commit

Permalink
Cadillac: fixed bug in regression safety
Browse files Browse the repository at this point in the history
  • Loading branch information
rbiasini committed Jun 3, 2018
1 parent ca0b6be commit cd1dba9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/safety/test_cadillac.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def _torque_driver_msg(self, torque):
to_send[0].RIR = 0x164 << 21

t = twos_comp(torque, 11)
to_send[0].RDLR = ((t >> 8) & 0x3) | ((t & 0xFF) << 8)
to_send[0].RDLR = ((t >> 8) & 0x7) | ((t & 0xFF) << 8)
return to_send

def _torque_driver_msg_array(self, torque):
Expand Down

0 comments on commit cd1dba9

Please sign in to comment.