mirror of
https://github.com/odriverobotics/ODrive.git
synced 2026-08-18 09:29:03 +08:00
Merge pull request #679 from thatcomputerguy0101/can_example_patch
Can example patch
This commit is contained in:
+1
-1
@@ -107,7 +107,7 @@ The three (starting) values are:
|
||||
|
||||
.. code:: iPython
|
||||
|
||||
odrv0.axis0..controller.config.vel_gain = 0.16
|
||||
odrv0.axis0.controller.config.vel_gain = 0.16
|
||||
|
||||
* vel_integrator_gain [Nm/((turn/s) * s)]:
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ print("Waiting for calibration to finish...")
|
||||
while True:
|
||||
msg = bus.recv()
|
||||
if msg.arbitration_id == (axisID << 5 | 0x01):
|
||||
current_state = msg.data[4] | msg.data[5] << 8 | msg.data[6] << 16 | msg.data[7] << 24
|
||||
current_state = msg.data[4]
|
||||
if current_state == 0x1:
|
||||
print("\nAxis has returned to Idle state.")
|
||||
break
|
||||
@@ -50,4 +50,4 @@ for msg in bus:
|
||||
print("Axis has entered closed loop")
|
||||
else:
|
||||
print("Axis failed to enter closed loop")
|
||||
break
|
||||
break
|
||||
|
||||
Reference in New Issue
Block a user