Skip to content

odrivetool: Error on drv-status #743

Description

@liborw

Describe the bug
drv-status produce following error:

$ odrivetool drv-status
Waiting for ODrive...
Traceback (most recent call last):
  File "/home/wagnelib/Work/protocols/2024-03-12_Odrive/env/bin/odrivetool", line 216, in <module>
    print_drv_regs("Motor 0", my_odrive.axis0.motor)
  File "/home/wagnelib/Work/protocols/2024-03-12_Odrive/env/lib/python3.11/site-packages/odrive/utils.py", line 449, in print_drv_regs
    fault = motor.gate_driver.drv_fault
            ^^^^^^^^^^^^^^^^^
AttributeError: 'anonymous_interface_127888826724624' object has no attribute 'gate_driver'

To Reproduce

Call:

$ odrivetool drv-status

Expected behavior
Print drv status.

Desktop (please complete the following information):

  • OS:
$ uname -a
Linux *** 6.6.20-1-lts #1 SMP PREEMPT_DYNAMIC Sun, 03 Mar 2024 07:25:31 +0000 x86_64 GNU/Linux
  • odrivetool Version (odrivetool --version)
$ odrivetool --version
ODrive control utility v0.6.8
  • odrive board: Odrive S1

Additional context
None

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions