Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   HELP Swerve Drive!!!!! (http://www.chiefdelphi.com/forums/showthread.php?t=103191)

beandip3160 18-02-2012 15:52

HELP Swerve Drive!!!!!
 
Ok I'm actually pretty new to labview and actually programming altogether and this year our team decided on using swerve drive for our robot. I am freaking out because we only have four days left and this drive system is a nightmare. Can somebody help me please. our main problem is getting the pod part of the wheels to act like a servo motor and follow the axis value of the controller we're using with a max turn of 90 degrees i have the encoder wired correctly and the encoder isnt a problem so how can i make the motor act as described above

nick1023 18-02-2012 16:36

Re: HELP Swerve Drive!!!!!
 
Team 358 has graciously posted some labview code on their site here that has a PID example for swerve drive. This example uses a POT instead of encoders.

http://team358.org/files/programming...2009-/LabVIEW/
P(ID) example 2010.

beandip3160 18-02-2012 17:06

Re: HELP Swerve Drive!!!!!
 
Well we were actually looking into pots right now and my main question is how the PID actually works. The lab view help doesn't exactly describe it in the terms of a newbie.

Ether 18-02-2012 17:39

Re: HELP Swerve Drive!!!!!
 
Quote:

Originally Posted by beandip3160 (Post 1129663)
Well we were actually looking into pots right now and my main question is how the PID actually works. The lab view help doesn't exactly describe it in the terms of a newbie.

What part don't you understand?


beandip3160 18-02-2012 17:57

Re: HELP Swerve Drive!!!!!
 
The help says that The PID range features control output raange limiting with integrator anti-windup and bumpless controller output for PID gain changes. Use the DBL instance of this VI to implement a single control loop. Use the DBL Array instance to implement parallel multi-loop control.

That is really a fantastic explanation and all plus you can tell national instruments wanted to explain it but what does it mean :confused:

Ether 18-02-2012 17:59

Re: HELP Swerve Drive!!!!!
 
Quote:

Originally Posted by beandip3160 (Post 1129694)
The help says that The PID range features control output raange limiting with integrator anti-windup and bumpless controller output for PID gain changes. Use the DBL instance of this VI to implement a single control loop. Use the DBL Array instance to implement parallel multi-loop control.

That is really a fantastic explanation and all plus you can tell national instruments wanted to explain it but what does it mean :confused:

One way to look at it is, PID turns your motor into a servo.

You know what angle you want your wheel to be at, and a sensor knows where the wheel actually is.

The first is called the setpoint, and the second is called the process variable.

You provide the setpoint and the process variable as inputs to the PID, and it takes care of the math to figure out what output to send to the motor to make it do what you want.

Armed with that overview, try reading these and see if they make any sense:

http://www.eetimes.com/ContentEETime...0/f-wescot.pdf

http://en.wikipedia.org/wiki/PID_controller


By the way, you guys should get a team member whose job it is to hang out on Chief Delphi and check things out as your team is making decisions. Had you done so, you'd have known that it is strongly advised that a team not attempt swerve for the first time during build season. I feel your pain.


beandip3160 18-02-2012 18:34

Re: HELP Swerve Drive!!!!!
 
Well we are actually a third year team; however this is My first year actually programming the robot our old programmer is going to college and isnt around all the time to help out .

Thanks though for the information and the pdf file i am going to use what i now know with team 358's example you've been a big help

Ether 18-02-2012 18:37

Re: HELP Swerve Drive!!!!!
 
Quote:

Originally Posted by beandip3160 (Post 1129713)
Well we are actually a third year team

That's not what I said. It doesn't matter if it's the team's 10th year. The question is, has the team ever done swerve before; and if so, has the knowledge gained from doing so carried forward to this year's team?



beandip3160 18-02-2012 18:45

Re: HELP Swerve Drive!!!!!
 
Thats what i told everyone when we started doing this that the swerve drive would be a good summer project i was against doing it as our programming has been simplified before so that we wouldnt need many sensors however they seemed to think it would be a good idea to try it this year

Ether 18-02-2012 18:47

Re: HELP Swerve Drive!!!!!
 
Quote:

Originally Posted by beandip3160 (Post 1129721)
Thats what i told everyone when we started doing this that the swerve drive would be a good summer project i was against doing it as our programming has been simplified before so that we wouldnt need many sensors however they seemed to think it would be a good idea to try it this year

Hey, look on the bright side. Every cloud has a silver lining: think how much you'll learn.



beandip3160 18-02-2012 18:49

Re: HELP Swerve Drive!!!!!
 
my thoughts exactly because of swerve ive done work with encoders and potentiometers now

Blondie3160 18-02-2012 19:14

Re: HELP Swerve Drive!!!!!
 
our team burnt our pot up

beandip3160 18-02-2012 19:31

Re: HELP Swerve Drive!!!!!
 
how do you use encoders with a PID example because I just found out that we cant use them on our bot

DominickC 18-02-2012 22:04

Re: HELP Swerve Drive!!!!!
 
I've got little experience with PID, however it's easy to calculate where you are, the error in your system, and set an output based on said error.

I don't have access to a machine with LabView on it tonight, however if you PM me I can send you an example of correction without PID.

beandip3160 18-02-2012 22:51

Re: HELP Swerve Drive!!!!!
 
Ok I will thanks


All times are GMT -5. The time now is 16:31.

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