Thread: Extreme curve?
View Single Post
  #15   Spotlight this post!  
Unread 02-03-2016, 07:02
yonip yonip is offline
Registered User
FRC #0449 (The Blair Robot Project)
Team Role: Programmer
 
Join Date: Jan 2016
Rookie Year: 2014
Location: Silver Spring, MD
Posts: 24
yonip is an unknown quantity at this point
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.