Go to Post “There are two ways to compete, one is to drag your opponent down, the other is to raise the bar and excel. Which do you think is more beneficial to you in the long run?” -- John Abele - Candice.E [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 05-03-2009, 17:54
solomason519 solomason519 is offline
Registered User
FRC #0519
 
Join Date: Jan 2009
Location: detroit
Posts: 16
solomason519 is an unknown quantity at this point
autonomous programming

hey im tryin to program autonomous.
I want our robot to move forward and track the opposite alliance's robot's trailer. I am clueless in programming autonmous mode. I need some help please. Can you guys show me how to use the default autonomous vi to accomplish this????? Please start from the beginning... we are running two motors for the drivetrain they are controlled by controller1 of the ds the left side wheels are run by axis 2 and the right side wheels are ran by axis 4.
Reply With Quote
  #2   Spotlight this post!  
Unread 08-03-2009, 12:38
Garii's Avatar
Garii Garii is offline
Registered Abuser
AKA: Jared Hankle
FRC #3044 (BE4)
Team Role: Programmer
 
Join Date: Feb 2009
Rookie Year: 2009
Location: New York
Posts: 27
Garii is an unknown quantity at this point
Send a message via AIM to Garii
Re: autonomous programming

Quote:
Originally Posted by solomason519 View Post
hey im tryin to program autonomous.
I want our robot to move forward and track the opposite alliance's robot's trailer.
adding the two color tracking example in the project explorer will get this going but i suggest you open he camera in the begin.vi and create a VI that feeds it the camera global information, then you have to use alot of advanced VI's and programming that alot of teams just aren't using. If your new to programming like I am it can get VERY complicated when you start working with PID's. I opted to just write a code that would move our robot, if you guys are new as well i suggest the same, and even 10 year teams are doing it so DONT feel like youll be a newbie for trying it

Quote:
I am clueless in programming autonmous mode. I need some help please. Can you guys show me how to use the default autonomous vi to accomplish this????? Please start from the beginning... we are running two motors for the drivetrain they are controlled by controller1 of the ds the left side wheels are run by axis 2 and the right side wheels are ran by axis 4.
I dont fully understand you here, default autonmous?
and please explain your drive system
__________________
-The Garii- aka Jared Hankle
Ballston Spa Labview Programmer
new team slogan-"Can I Get Some Linux With These Fries?"



Reply With Quote
  #3   Spotlight this post!  
Unread 09-03-2009, 16:23
solomason519 solomason519 is offline
Registered User
FRC #0519
 
Join Date: Jan 2009
Location: detroit
Posts: 16
solomason519 is an unknown quantity at this point
Re: autonomous programming

we have 4wd and each side is controlled by one sim motor each.we have a playstatin 2 controller controlling our drivetrain. the left side is controlled by axis 2 of the ps2 controller and the right side is controlled by axis four of the controller. iwant the robot to jus move around the field in auton mode...
Reply With Quote
  #4   Spotlight this post!  
Unread 09-03-2009, 21:03
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: autonomous programming

Quote:
Originally Posted by solomason519 View Post
iwant the robot to jus move around the field in auton mode...
The unmodified Autonomous Independent VI from the Basic Robot framework is a perfect place to start. It controls the drive motors using a series of Drive blocks and Delay & Feed blocks. I think it's very self-explanatory, but I'm an experienced programmer and I usually find it easy to understand well-written and well-commented code. Take a look at it, and if you have any questions about what it's doing, ask.
Reply With Quote
  #5   Spotlight this post!  
Unread 10-03-2009, 12:30
Garii's Avatar
Garii Garii is offline
Registered Abuser
AKA: Jared Hankle
FRC #3044 (BE4)
Team Role: Programmer
 
Join Date: Feb 2009
Rookie Year: 2009
Location: New York
Posts: 27
Garii is an unknown quantity at this point
Send a message via AIM to Garii
Re: autonomous programming

Quote:
Originally Posted by solomason519 View Post
we have 4wd and each side is controlled by one sim motor each.we have a playstatin 2 controller controlling our drivetrain. the left side is controlled by axis 2 of the ps2 controller and the right side is controlled by axis four of the controller. iwant the robot to jus move around the field in auton mode...
If all you want it to do is move, than open your motors in begin.vi

If you have four seperate motors liek i think your saying, then open all four on the seperate PWMs assuming you havent done so already [I would assume yes if you have teleop working]

Then i would suggest using a series of WHILE loops, use the set time VI and input a value you want to wait in seconds. Then wire the boolean out [itll be green] to the STOP if TRUE loop node [its a stop sign] then open your drive type in the while loop [this will be in your WPI robotis library]. i suggest arcade style. wire the RobotDrivedevRef into your drive style VI. just repeat these steps in a few more loops and wire the drivedevref from one VI to anouther. Remember that the drive devref is found by taking the ROBOTDATA [or something of the sort] and ungrouping by name[which is in the cluster library] then slecting it when the finger shows up as an icon select "RobotDriveDevRef" from the list.

or follow alans suggestion, both work
and that will get your robot at least moving

hope it helps.
__________________
-The Garii- aka Jared Hankle
Ballston Spa Labview Programmer
new team slogan-"Can I Get Some Linux With These Fries?"




Last edited by Garii : 10-03-2009 at 12:36.
Reply With Quote
Reply


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Programming Help - Autonomous RedOctober Technical Discussion 2 10-02-2006 13:08
CMUcam autonomous programming kshot Programming 1 17-01-2005 19:18
Autonomous Programming Guide cbolin Programming 2 16-12-2004 15:13
Programming Autonomous mode Jared Stofflett Programming 3 11-11-2003 09:32
Autonomous programming Dush Programming 4 20-02-2003 09:54


All times are GMT -5. The time now is 21:35.

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