Hi, I want to write a human readable error dump using the ASCII protocol.
ODrive pro, version v0.6.7
I got as far as figuring out how active_errors are masked into one. But now I lack the error codes.
I had a look at the odrivetool github, but the enums I find there do not match with the error codes in the odrivetool.
Example:
error_dump(odrv0):
active_errors: Error(s):
ODriveError. INITIALIZING
ODriveError.DC_BUS_UNDER_VOLTAGE
ODriveError.WATCHDOG_TIMER_EXPIRED
readout gives me:
In [15]: hex(odrv0.axis0.active_errors)
Out[15]: β0x1000201β
as in:
In [19]: hex(ODriveError.DC_BUS_UNDER_VOLTAGE)
Out[19]: β0x200β
In [20]: hex(ODriveError.INITIALIZING)
Out[20]: β0x1β
In [21]: hex(ODriveError.WATCHDOG_TIMER_EXPIRED)
Out[21]: β0x1000000β
The problem: I canβt find the definitions anywhere on the github page,
All enums for ODriveError I found do not contain INITIALIZING and WATCHDOG_TIMER_EXPIRED, DC_BUS_UNDER_VOLTAGE values do not mach.
Can anyone save me from writing them myself each time i update the odrives?