SetM1VelocityPID

Questions about using encoders with the Roboclaw product line
Post Reply
User avatar
Basicmicro Support
Posts: 1594
Joined: Thu Feb 26, 2015 9:45 pm
Re: SetM1VelocityPID

Post by Basicmicro Support »

1. Make sure you have the latest arduino library straight from our website.
2. We dont recommend setting the PID constants in the arduino program. It is better to set them and test them using the IonMotion PC app and then save the settings to the Roboclaw so you dont need to hard code thes values in your arduino code.
3. I believe the syntax for the arduino library for the SetM#Velocity commands was rearranged in the last update. It sounds like the examples need to have the commands removed in general, but if you are going to hard code the PID values you should use the new syntax(Kp,Ki,Kd order)

Post Reply