takijo
1
Hi,
I want to add a custom MOTOR_TYPE to firmware.
I add new Motor type to odrive-interface.yaml.

And I regenerate parameters by the command that
python Firmware/interface_generator_stub.py --definitions Firmware/odrive-interface.yaml --template tools/enums_template.j2 --output tools/odrive/enums.py

I can finished to build and flash custom firmware that add the motor type.
But,I cannot find the motor type in odrivetool.
What is wrong?
Please advise for me.
Thanks.
Make sure you’re running the odrivetool from the tools/ folder and not from wherever you installed python.
1 Like
towen
3
Aha yes of course, it’s not anew variable he was adding but a new enum value.
Enums are an unfortunate limitation in the otherwise self-describing Fibre protocol.
takijo
4
@Wetmelon
Thank you for your reply.
I can find my custom parameter when I built in tool/folder.
2 Likes