mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-08 15:12:10 +08:00
04af978260
* let can packer handle counter * diff is expected * update refs * clean that up * bump opendbc * fix sim old-commit-hash: 0ca62bf7df0fe81829c744fd8689c9b97cb6a36b
8 lines
172 B
Python
8 lines
172 B
Python
def create_control(packer, torque_l, torque_r):
|
|
values = {
|
|
"TORQUE_L": torque_l,
|
|
"TORQUE_R": torque_r,
|
|
}
|
|
|
|
return packer.make_can_msg("TORQUE_CMD", 0, values)
|