镜像自地址
https://github.com/MINT-SJTU/Evo-RL.git
已同步 2026-11-20 18:17:06 +00:00
fix(can): honor effective fd mode in speed_test
这个提交包含在:
@ -266,7 +266,7 @@ def speed_test(cfg: CANSetupConfig, interface: str):
|
|||||||
|
|
||||||
responding_motor = None
|
responding_motor = None
|
||||||
for motor_id in cfg.motor_ids:
|
for motor_id in cfg.motor_ids:
|
||||||
responses, _ = test_motor(bus, motor_id, 0.5, cfg.use_fd)
|
responses, _ = test_motor(bus, motor_id, 0.5, effective_use_fd)
|
||||||
if responses:
|
if responses:
|
||||||
responding_motor = motor_id
|
responding_motor = motor_id
|
||||||
break
|
break
|
||||||
@ -285,7 +285,7 @@ def speed_test(cfg: CANSetupConfig, interface: str):
|
|||||||
arbitration_id=responding_motor,
|
arbitration_id=responding_motor,
|
||||||
data=[0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFC],
|
data=[0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFC],
|
||||||
is_extended_id=False,
|
is_extended_id=False,
|
||||||
is_fd=cfg.use_fd,
|
is_fd=effective_use_fd,
|
||||||
)
|
)
|
||||||
bus.send(msg)
|
bus.send(msg)
|
||||||
resp = bus.recv(timeout=0.1)
|
resp = bus.recv(timeout=0.1)
|
||||||
|
|||||||
在新工单中引用
屏蔽一个用户