|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#2
|
|||||
|
|||||
|
Re: autonomous mode help please...
I would be simpler to use 4 motor tank drive, then your autonomous mode is also much simpler. Making three duplicates of the original drive function isn't the right way to go.
For just the top Drive section: 1) Right click on the top "Drive Open 2 Motor" and choose: Replace -> RobotDrive Pallet -> Open 4 Motor You'll then need to add constants for the extra PWMs for your motors, but make sure to read which motor each connection is supposed to be. 2) Right click on "Drive Arcade Drive" and choose: Replace -> RobotDrive Pallet -> TankDrive 3) Take the output of your second joystick on USB 2 and connect it to the Tank Drive "Right Axis value" 4) Remove the second "Drive Open 2 Motor" and the second Arcade Drive icon. 5) Switch "TeleOp Execute" to "TeleOp Reset" and also replace the Arcade Drive there with Tank Drive. That's all you need to have 4 motors controlled by Joysticks 1 & 2 in tank-style drive. The attached sample of this is a direct modification of your code. This makes Autonomous pretty simple, because you can use what's already there In Autonomous Independent.vi replace each of the three Arcade Drive icons with TankDrive: 1) Right click on "Drive Arcade Drive" and choose: Replace -> RobotDrive Pallet -> TankDrive Add a second constant (use -0.5 for the fist one and 0.5 for the second one) to each of the TankDrive Left axis inputs. 2) Toggle the True/False switch on the left to True, so that the autonomous is allowed to run. P.S. I've attached a picture of what the autonomous would look like when you're done. Last edited by Mark McLeod : 19-02-2009 at 09:15. |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Autonomous mode help | Drake Hunter | NI LabVIEW | 3 | 12-02-2009 01:52 |
| Help needed in autonomous programming for hybrid mode | Team_STORM | Programming | 3 | 21-01-2008 19:11 |
| Autonomous Mode HELP! | jesusescobar | Programming | 4 | 12-02-2007 12:02 |
| Help - Making the autonomous mode | razer | Programming | 5 | 31-01-2007 16:25 |
| Simulating autonomous mode - i need help!! :( | itay_ms | Programming | 5 | 21-01-2007 11:28 |