Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

odrivetool: Error on drv-status #743

Open
liborw opened this issue Mar 12, 2024 · 1 comment
Open

odrivetool: Error on drv-status #743

liborw opened this issue Mar 12, 2024 · 1 comment
Labels

Comments

@liborw
Copy link

liborw commented Mar 12, 2024

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

@liborw liborw added the bug label Mar 12, 2024
@samuelsadok
Copy link
Member

Thanks for the heads-up. This is a quite old command that hasn't been maintained for a while, I actually forgot it's there. I'll make a note to retire it.

You can instead look up DRV fault details by typing dump_errors(odrv0) or odrv0.axis0.last_drv_fault inside the interactive odrivetool console.

That said, on new-gen ODrives (S1, Pro, ...) you should not be getting DRV faults during normal operation (or at all, for that matter). if you do, please let us know (e.g. here or on Discord or [email protected]).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants