Unable to set encoder to hall effect


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.


You need to switch to devel firmware and odrive_tool repos


Ah, you’re absolutely right. I didn’t notice that the hoverboard doc was in the devel branch. Now it’s all starting to make sense



hey James I’m having the same problem and I’m trying to have my ODrive power hoverboard motors too, what did you do to switch to the devel firmware? Or I guess, what does it mean to be in the devel branch?


(post withdrawn by author, will be automatically deleted in 24 hours unless flagged)


In development, possibly not stable (that is it might have unknown bugs, not yet ready for reliable everyday use)