Go to Post You'll find that there are plenty of teams and individuals who shout. You'll also find there are a smaller subset of teams and individuals that do. Those that do tend to be the ones that get their way. - Lil' Lavery [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 01-31-2009, 07:24 PM
pinballwizard96's Avatar
pinballwizard96 pinballwizard96 is offline
Ludologist, audiophile, etc
FRC #3021 (The Caiman Agents)
 
Join Date: Dec 2008
Rookie Year: 2008
Location: CA
Posts: 11
pinballwizard96 is an unknown quantity at this point
Non-Arcade Drive causes problems in Autonomous...

I deployed the default FRC cRIO project correctly and noticed that both drive motors were now controlled by one joystick. When I switched to Autonomous mode, the default program ran as expected EXCEPT...only 1 motor changed directions - the other one ran in the same direction for the duration of the program. I tried switching the connectors, and the OTHER motor experienced the problem while the 1st one corrected itself. Could this be related to the speed controller, or is the autonomous program intended to switch the direction of only 1 motor?
Thanks in advance
__________________
pinballwizard96

"The Enrichment Center is committed to the well being of all participants. Cake and grief counseling will be available at the conclusion of the test. Thank you for helping us help you help us all." -Portal

http://www.youtube.com/watch?v=VnqpOFcBiMM
Reply With Quote
  #2   Spotlight this post!  
Unread 02-01-2009, 10:01 AM
Bryan Herbst's Avatar
Bryan Herbst Bryan Herbst is offline
Registered User
AKA: Bryan
FRC #2052 (KnightKrawler)
Team Role: Mentor
 
Join Date: Sep 2007
Rookie Year: 2007
Location: Minneapolis, Minnesota
Posts: 544
Bryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond repute
Re: Non-Arcade Drive causes problems in Autonomous...

The default code is set to Arcade drive. This means that the robot is controlled by one joystick. The y-axis controls velocity, the x controls rotation.

I don't have the autonomous code in front of me, but from what I remember with playing around with it was that your description is correct. The default autonomous code is on a timer, and goes forward then turns (left I believe) for a short amount of time four times.

To me, it sounds like the default code is running perfectly fine. To switch to tank drive (two joysticks, each controlling one side of the robot), you will have to replace the Arcade drive VI with the tank drive VI, and add another joystick. You can also easily change the autonomous code (<A href="http://www.lvmastery.com/tipjar2009-01-02">LV mastery tutorial on autonomous</a>).

If you already modified you code, and it isnt changing anything, make sure your build specifications are correct, and that you are deploying the build to run as startup. If it isnt being run as the startup project, the old code will continue to be run every time you turn the robot on.
__________________
Team 2052- Knightkrawler
Mentor and volunteer
Reply With Quote
  #3   Spotlight this post!  
Unread 02-01-2009, 08:45 PM
pinballwizard96's Avatar
pinballwizard96 pinballwizard96 is offline
Ludologist, audiophile, etc
FRC #3021 (The Caiman Agents)
 
Join Date: Dec 2008
Rookie Year: 2008
Location: CA
Posts: 11
pinballwizard96 is an unknown quantity at this point
Re: Non-Arcade Drive causes problems in Autonomous...

alright I shoulda noticed that...was mainly worried about the autonomous mode because I heard it was supposed to run the robot forward and backwards (they probably had already changed it).
Thanks
__________________
pinballwizard96

"The Enrichment Center is committed to the well being of all participants. Cake and grief counseling will be available at the conclusion of the test. Thank you for helping us help you help us all." -Portal

http://www.youtube.com/watch?v=VnqpOFcBiMM
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
Adding non drive motors in Advanced Framwork ffej NI LabVIEW 11 02-01-2009 08:12 PM
Arcade/Tank Drive Malfunction piedmont Programming 2 01-19-2009 05:37 PM
Non-camera servos in Autonomous Vashts6583 Programming 8 02-18-2007 12:31 PM
Arcade Drive Anfony VEX 4 11-08-2006 07:46 PM
vex programming arcade drive setting Michael Leicht FIRST Tech Challenge 3 10-17-2005 09:26 PM


All times are GMT -5. The time now is 08:38 AM.

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