Merge pull request #679 from thatcomputerguy0101/can_example_patch

Can example patch
This commit is contained in:
samuelsadok
2022-03-23 12:42:49 +01:00
committed by GitHub
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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)]:
+2 -2
View File
@@ -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