|
Extreme curve?
If you're using PID for speed control, make sure the encoders are reading correctly (encoder shaft rotates with the shaft it's coupled with, it's wired up correctly, and you get a reading from the encoder when the wheel is spinning)
If the encoder isn't coupled correctly with the drive shaft, a PID loop will "correct" it to 100% power
Also for PID: if your motor is inverted relative to the encoder (ie positive value to the motor results in a negative value to the encoder) a feedback loop will occur, causing the motor to go at full speed, and probably staying there even when the setpoint is 0. The solution to this is negating the setpoint instead of inverting the motor.
|