I’m trying to get my odrive to control a hoverboard motor. I’m following the guide here (https://github.com/madcowswe/ODrive/blob/devel/docs/hoverboard.md)
All is fine until I get to this line
odrv0.axis0.encoder.config.mode = ENCODER_MODE_HALL
I get an errors “NameError: name ‘ENCODER_MODE_HALL’ is not defined”
Is there a config mode number I could use instead? Anyway around this issue for the moment?
Any help would be greatly appreciated.