diff --git a/docs/control.rst b/docs/control.rst index 4fa6277a7..e262cab40 100644 --- a/docs/control.rst +++ b/docs/control.rst @@ -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)]: diff --git a/tools/can_example.py b/tools/can_example.py index f6ce94f27..d44a50333 100644 --- a/tools/can_example.py +++ b/tools/can_example.py @@ -18,7 +18,7 @@ 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 @@ print("Axis has entered closed loop") else: print("Axis failed to enter closed loop") - break \ No newline at end of file + break