Go to Post I was not looking at this as a backdoor to asking Brandon to do it (when I have impossible/unreasonable tasks I want done, I ask him straight out ;-) - Joe Johnson [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #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
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 07:57 AM.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi