Go to Post ...I tried to pump it up to the 47 inches. I stopped around 42 inches, than tried getting it through a 36" door. It got stuck, I proceeded to dropkick the thing in front of my team and a girl I had gone out with the previous Fri. It didn't move, I hit the floor. Ouch, my pride. - ChrisMcK2186 [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

 
Closed Thread
 
Thread Tools Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 03-08-2016, 02:06 PM
cjl2625's Avatar
cjl2625 cjl2625 is offline
apel py
AKA: Cory Lynch
FRC #2067 (Apple Pi)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2013
Location: Guilford, CT
Posts: 412
cjl2625 is a splendid one to beholdcjl2625 is a splendid one to beholdcjl2625 is a splendid one to beholdcjl2625 is a splendid one to beholdcjl2625 is a splendid one to beholdcjl2625 is a splendid one to beholdcjl2625 is a splendid one to beholdcjl2625 is a splendid one to behold
Re: Heading PID tips

Quote:
Originally Posted by Jared Russell View Post
1) Figure out what the minimum required output is to get the robot to turn at all. If the PID output is less than this magnitude, output this magnitude (with the same sign as the PID output).
Wouldn't this cause oscillations, if the output switches between positive and negative of this magnitude?

As a related idea that I had, I wonder if it would make sense to find some magnitude where the robot almost turns (but is still stopped) and add it to the PID output. Maybe it would simulate low friction or something.
__________________
Head Programmer / Driver
  #2   Spotlight this post!  
Unread 03-08-2016, 02:18 PM
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,069
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: Heading PID tips

Quote:
Originally Posted by cjl2625 View Post
Wouldn't this cause oscillations, if the output switches between positive and negative of this magnitude?

As a related idea that I had, I wonder if it would make sense to find some magnitude where the robot almost turns (but is still stopped) and add it to the PID output. Maybe it would simulate low friction or something.
In practice you are typically moving so slowly at this minimum output that the oscillation shouldn't be a problem (you probably have a small deadband around the setpoint at which point you say "good enough" and cut power).

Adding a minimum term to the output is also a totally valid approach that accomplishes the same thing and only differs in the details.
Closed Thread


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 05:25 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