View Single Post
  #1   Spotlight this post!  
Unread 03-24-2016, 12:43 PM
pblankenbaker pblankenbaker is offline
Registered User
FRC #0868
 
Join Date: Feb 2012
Location: Carmel, IN, USA
Posts: 102
pblankenbaker is a glorious beacon of lightpblankenbaker is a glorious beacon of lightpblankenbaker is a glorious beacon of lightpblankenbaker is a glorious beacon of lightpblankenbaker is a glorious beacon of light
Re: Command to turn to angle

It looks like your command enables a PID controller to perform the turn. This is OK (we do this as well). However, I don't see where you turn the PID controller off (disable it) in your command's end() and interrupted() methods.

I suspect this is why you are unable to drive after running your command (the command's PID continues to run in the background and "fights" with your normal drive command at setting the motor power).

Adding pid.disable() to the end() method and having interrupt() invoke end() should clean up this issue.
Reply With Quote