Go to Post This site is truly the best resource out there for FIRST teams, the information that flows on here is just amazing and I don't know what FIRST would be like without it. - Ricky Q. [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 31-08-2016, 12:02
Jared Russell's Avatar
Jared Russell Jared Russell is offline
Taking a year (mostly) off
FRC #0254 (The Cheesy Poofs), FRC #0341 (Miss Daisy)
Team Role: Engineer
 
Join Date: Nov 2002
Rookie Year: 2001
Location: San Francisco, CA
Posts: 3,064
Jared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond repute
Re: Auto-Aligning in Teleop

Quote:
Originally Posted by martin417 View Post
In almost every case, a simple proportional control is more than sufficient.
"Almost every case" is really pushing it, but the sentiment that not every application requires I and D is definitely correct.

For mechanisms that are well-approximated as a linear first-order system near the expected operating point (i.e. negligible inertia for position control; near constant inertia for velocity control), sure, P might be enough. Flywheels, lightweight turrets and conveyors, and counter-balanced elevators can fall into this category if you don't care about being lightning fast and/or can tolerate some overshoot or steady-state error.

However, drivetrains, arms, and heavier servo mechanisms definitely benefit from damping and/or integral action much of the time. The best policy is to always start with P-only, then add other terms from there as necessary.

To the OP's question: if the same PID gains work well for you in autonomous mode, then you must ask yourself what is different in teleop? It could be timing, other things your robot is doing when in teleop (are other mechanisms drawing from the battery or is your code taking much longer to execute?), or different initial conditions (e.g. are you trying to auto-align when you are much further off target in teleop and/or still moving, in which case you may need to re-tune your controller to these conditions)?
Reply With Quote
  #2   Spotlight this post!  
Unread 31-08-2016, 12:14
aeastet aeastet is offline
Programming Mentor
AKA: Tim Easterling
FRC #6043 (Allegan Tigers Robotics)
Team Role: Coach
 
Join Date: Jan 2015
Rookie Year: 2011
Location: Holland, MI
Posts: 111
aeastet is an unknown quantity at this point
Re: Auto-Aligning in Teleop

First I would say that your teleop is running slower than auto. There are many ways to fix this but we need more information:

What programming language?
Can you provide your code?
Do you do anything different in Auto than in teleop?

If you get these answers I would guess that someone can help.

My guess is not the PID tuning. If it works in Auto then it should be fine as long as you are running the same loop rate. If one loop is running faster than the other you will get a different result. Everything in PID is based on time.

Tim
Reply With Quote
Reply


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 09:01.

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