|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
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. |
|
#2
|
||||
|
||||
|
Re: autonomous programming
Quote:
Quote:
and please explain your drive system |
|
#3
|
|||
|
|||
|
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...
|
|
#4
|
|||||
|
|||||
|
Re: autonomous programming
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.
|
|
#5
|
||||
|
||||
|
Re: autonomous programming
Quote:
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. Last edited by Garii : 10-03-2009 at 12:36. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
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 |