Code for RDS one DOF prototype, communicating with Odrive pro over CAN. This repo is intended for Teensy 4.1 but will also work on Teensy 4.0 with some adjustments.
- Use Odrive WebGui to configure odrive for torque control
- Clone repo into a PlatformIO workspace.
- Build and upload to teensy 4.1
- Use Teleplot to get real time feedback on controller performance
We are using this motor With this SPI encoder
This command is used to send a position trajectory for the teensy to send to motors.
<command_type = D> <data_length: int, 1-1000> <repeat = 1 | 0>
<mcp_splay_position: float> <mcp_flex_position: float> <pip_flex_position: float>
...
<mcp_splay_position: float> <mcp_flex_position: float> <pip_flex_position: float>
<data_crc8: uint_8>
end
This command will start the teensy tracking the trajectory.
<command_type = G>
end
This command will stop the teensy safely.
<command_type = S>
end
The teensy is constantly sending these commands back to the laptop.
<mcp_splay_position: float> <mcp_flex_position: float> <pip_flex_position: float> <active_bool: 1.0 | 0.0 >
This message is response for a message recieved from the laptop.
<success_bool >