Browse Source

两个电机驱动OK

master
zhaohe 2 years ago
parent
commit
66788da70b
  1. 4
      usrc/main.cpp

4
usrc/main.cpp

@ -71,10 +71,10 @@ void Main::run() {
ZLOGI(TAG, "motorb:TMC4361Version:%lx TMC2160VERSION:%lx", ic4361Version, ic2160Version);
}
motora.setIHOLD_IRUN(1, 28, 0); // 小臂
motora.setIHOLD_IRUN(1, 12, 0); // 小臂
motora.setMotorShaft(0);
motorb.setIHOLD_IRUN(1, 28, 0); // 小臂
motorb.setIHOLD_IRUN(1, 12, 0); // 小臂
motorb.setMotorShaft(0);
motora.rotate(1200000);

Loading…
Cancel
Save