mirror of
https://github.com/MoreTore/openpilot.git
synced 2026-09-29 19:04:03 +08:00
c64fd227ef
* add crc and counter for body
* add msg
* move counter
* whitespace
* ..
* bump opendbc
* update_refs
old-commit-hash: 7df1c025ae
10 lines
203 B
Python
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)
|