Go to Post There is a fine line between genius and insanity, watch your step! - Al Skierkiewicz [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

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 21-01-2017, 12:31
jreneew2's Avatar
jreneew2 jreneew2 is offline
Alumni of Team 2053 Tigertronics
AKA: Drew Williams
FRC #2053 (TigerTronics)
Team Role: Programmer
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Vestal, NY
Posts: 213
jreneew2 has a spectacular aura aboutjreneew2 has a spectacular aura aboutjreneew2 has a spectacular aura about
PID loop speeds up as it gets closer to target?

Hey I'm programming a mecanum drive base and previously we used a simple function that slowed it down as we got closer to the target. However, we want to make a more complex PID loop so we can strafe and rotate at the same time more smoothly.

I am using a navx and the PIDController class. I based my changes off of the examples that the navx comes with. However, I'd rather not change too much of what we already have. All I want to do is compute the absolute speed that we want.

So the problem I'm having is that the output speed that it is giving me doesn't make sense. It starts slow and gets faster in the middle and slows down at the end. This causes us to rotate much slower than we could before.

Here is a link to my code:
https://github.com/team2053tigertron...e/TigerDrive.h

https://github.com/team2053tigertron...TigerDrive.cpp

Thank you for the help,
Drew
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 15:30.

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