mirror of
https://github.com/infiniteCable2/panda.git
synced 2026-02-19 17:53:53 +08:00
Cadillac: fixed bug in regression safety
This commit is contained in:
@@ -43,7 +43,7 @@ class TestCadillacSafety(unittest.TestCase):
|
||||
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):
|
||||
|
||||
Reference in New Issue
Block a user