Files
MoreTore/selfdrive/car/body/bodycan.py
T
Igor Biletskyy c64fd227ef body: add crc and counter (#24120)
* add crc and counter for body

* add msg

* move counter

* whitespace

* ..

* bump opendbc

* update_refs
old-commit-hash: 7df1c025ae
2022-04-04 19:19:30 -07:00

10 lines
203 B
Python

def create_control(packer, torque_l, torque_r, idx):
can_bus = 0
values = {
"TORQUE_L": torque_l,
"TORQUE_R": torque_r,
}
return packer.make_can_msg("TORQUE_CMD", can_bus, values, idx)