feat: 初始化项目,添加电机控制、CAN通信、QT界面等模块
This commit is contained in:
15
can_test_motor/can_run_demo.py
Normal file
15
can_test_motor/can_run_demo.py
Normal file
@ -0,0 +1,15 @@
|
||||
# can_run_demo.py 调用程序demo
|
||||
|
||||
from can_main import can_motor_contral
|
||||
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
can_motor_contral(
|
||||
direction=1,
|
||||
angle=90,
|
||||
microstep=32,
|
||||
can_id=0x03,
|
||||
channel='vcan0',
|
||||
listen_feedback=True
|
||||
)
|
||||
Reference in New Issue
Block a user