ODrive Documentation

High performance motor control

View the Project on GitHub madcowswe/ODrive

Help improve these docs: submit edits using the link in the top right.

If you need help, please search or ask the ODrive Community.

ASCII Protocol

How to send commands

Command format

The ASCII protocol is human-readable and line-oriented, with each line having the following format:

command *42 ; comment [new line character]

Command Reference

Motor trajectory command

t motor destination

Example: t 0 -20000

For general moving around of the axis, this is the recommended command.

Motor Position command

p motor position velocity_ff current_ff

Example: p 0 -20000 0 0

Note that if you don’t know what feed-forward is or what it’s used for, simply omit it.

Motor Velocity command

v motor velocity current_ff

Example: v 0 1000 0

Note that if you don’t know what feed-forward is or what it’s used for, simply omit it.

Motor Current command

c motor current

Parameter reading/writing

Not all parameters can be accessed via the ASCII protocol but at least all parameters with float and integer type are supported.