|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools |
Rating:
|
Display Modes |
|
#1
|
||||
|
||||
|
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
Last edited by beandip3160 : 18-02-2012 at 16:18. |
|
#2
|
|||
|
|||
|
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. |
|
#3
|
||||
|
||||
|
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.
|
|
#4
|
||||
|
||||
|
Re: HELP Swerve Drive!!!!!
Quote:
|
|
#5
|
||||
|
||||
|
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 ![]() |
|
#6
|
||||
|
||||
|
Re: HELP Swerve Drive!!!!!
Quote:
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. Last edited by Ether : 18-02-2012 at 18:09. |
|
#7
|
||||
|
||||
|
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 |
|
#8
|
||||
|
||||
|
Re: HELP Swerve Drive!!!!!
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?
|
|
#9
|
||||
|
||||
|
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
|
|
#10
|
||||
|
||||
|
Re: HELP Swerve Drive!!!!!
Quote:
|
|
#11
|
||||
|
||||
|
Re: HELP Swerve Drive!!!!!
my thoughts exactly because of swerve ive done work with encoders and potentiometers now
|
|
#12
|
|||
|
|||
|
Re: HELP Swerve Drive!!!!!
our team burnt our pot up
|
|
#13
|
||||
|
||||
|
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
|
|
#14
|
|||
|
|||
|
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. |
|
#15
|
||||
|
||||
|
Re: HELP Swerve Drive!!!!!
Ok I will thanks
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|