Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   We Need a Little Bit Of Help... (http://www.chiefdelphi.com/forums/showthread.php?t=75520)

Must Be Drama 05-03-2009 16:14

We Need a Little Bit Of Help...
 
its something so simple that its going over our heads...

we are wondering how to set up the robot's attonomous to drive forward for 5 seconds, and drive in a circle for 10 seconds..

something so simple that, i cant even grasp the idea where to start....:ahh:

JohnBoucher 05-03-2009 16:16

Re: We Need a Little Bit Of Help...
 
Will you be at NYC regional tomorrow? If so come and find Team 237 from CT and we'll get you going.

Must Be Drama 05-03-2009 16:27

Re: We Need a Little Bit Of Help...
 
Quote:

Originally Posted by JohnBoucher (Post 832221)
Will you be at NYC regional tomorrow? If so come and find Team 237 from CT and we'll get you going.

thanks but we would try to get it working before we rush in the morning :yikes:

gwytheyrn 05-03-2009 16:40

Re: We Need a Little Bit Of Help...
 
1 Attachment(s)
Okay, well just to get started, take a glance over at the thread over at http://www.chiefdelphi.com/forums/sh...ad.php?t=75273 to get an idea how to start.

Or, you can just take the attached vi and modify it yourself. It's pretty messy as it is, but it has the basic framework you need. All you need to do is change the case statement to x..y where x and y are the start and end time in ms (0..15000 means 0-15 s), then put what you want to do in the cases.

While the attached should be functional, I strongly recommend looking over it until you understand it. I'm not saying don't use it, but you need to understand (or at least think you understand) exactly what is going into your code.

JohnBoucher 05-03-2009 16:55

Re: We Need a Little Bit Of Help...
 
Quote:

Originally Posted by Must Be Drama (Post 832231)
thanks but we would try to get it working before we rush in the morning :yikes:

OK. If you need help later in the day we'll be there.

Greg McKaskle 05-03-2009 19:23

Re: We Need a Little Bit Of Help...
 
If you open the default Autonomous Independent VI, it contains commented code that loops around in time-based pattern.

The diagram uses two primary VIs, the Drive VI to set the motor speeds, and the Wait and Feed. You can use sequences of these to carry out all sorts of patterns.

You can do the pattern you describe with as little as four VIs, two drives and two waits.

Think about what happens when driving the pattern in tele. What joystick values will flow into the drive. What would be the joystick positions for the first movement, and the next. Each time you want to change the motor speeds, execute a Drive, and to leave it that way for some time, use a Wait and Feed.

After you get the hang of it, you may want to modify this a bit to accelerate more slowly using either a few more blocks or a loop, but there is nothing complicated about the simple dead reckoning driving.

Greg McKaskle

Must Be Drama 07-03-2009 20:17

Re: We Need a Little Bit Of Help...
 
team 56 helped us at nyc regionals.
they dont have any internet there :facepalm:
so thanks for the help greg.


All times are GMT -5. The time now is 06:13.

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