View Single Post
  #1   Spotlight this post!  
Unread 03-13-2016, 02:32 PM
Cinnamon Toast's Avatar
Cinnamon Toast Cinnamon Toast is offline
Registered User
FRC #3641 (The Flying Toasters)
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2013
Location: Michigan
Posts: 32
Cinnamon Toast is an unknown quantity at this point
Custom PI Loop not working

So I've created a PILoop class to handle PID (with no d) for different systems of the robot. I've got different methods for drive base, shooter angle, and intake articulation as all will need different Kp and Ki values. For some reason when I go to fill the set function of a motor to that PILoop function nothing happens. It's definitely not the motor as I've written a dummy P loop inside the checking of the button press in teleop, and that works just fine. It's only when I try to use the PILoop method that nothing happens. What am I missing?? Here's the link to the github. Please take a look at the else if statement checking operator.getBaseBackLeft in teleop, as the code in that current logic block doesn't actually move the arm. Can anyone help?
Reply With Quote