ODrive icon indicating copy to clipboard operation
ODrive copied to clipboard

Some enum types use values that don't fit in the type

Open Wetmelon opened this issue 3 years ago • 0 comments

Describe the bug Some enums (e.g. Motor::Error) have values that are too large for the underlying type. All values above 2^32 are replaced with 0 (e.g. Motor::Error::NONE)

For Motor::Error, this is:

  • ERROR_UNKNOWN_VOLTAGE_COMMAND
  • ERROR_UNKNOWN_GAINS
  • ERROR_CONTROLLER_INITIALIZING
  • ERROR_UNBALANCED_PHASES

Additional context https://discourse.odriverobotics.com/t/bug-with-motor-error-enums/8685/2

Wetmelon avatar Feb 12 '22 02:02 Wetmelon