View Single Post
  #9   Spotlight this post!  
Unread 24-12-2011, 20:42
ratdude747's Avatar
ratdude747 ratdude747 is offline
Official Scorekeeper
AKA: Larry Bolan
no team
 
Join Date: Feb 2009
Rookie Year: 2008
Location: Madison, IN
Posts: 1,064
ratdude747 has a reputation beyond reputeratdude747 has a reputation beyond reputeratdude747 has a reputation beyond reputeratdude747 has a reputation beyond reputeratdude747 has a reputation beyond reputeratdude747 has a reputation beyond reputeratdude747 has a reputation beyond reputeratdude747 has a reputation beyond reputeratdude747 has a reputation beyond reputeratdude747 has a reputation beyond reputeratdude747 has a reputation beyond repute
Re: Creating a program that switch between tank and arcade

I have code for this somehwhere...

its labview code

it uses 3 drive modes, controlled by joystick buttons

one is pure arcade (arcade), one is RC car (left stick steers, right stick throttles), one is tank

it also has a dashboard to go with it.

I'll post the code once I get it off my old laptop

edit- someone must have deleted it from dropbox...

the code worked like this:

(in teleop)

- 3 buttons for each setting
- each button connects to a select block
- the false inputs of the slects are hooked tot he select above it, with the last select going into a feedback node, which returns to the false input of the first select block. the true inputs connect the the button's corresponding mode.
-the initial input of the feedback note is set to arcade (set to the default case)
-the output of the last select goes to a case structure, with one case for each mode. for each case, it uses 2 of 4 axises to go to either an arcade block (arcade and rc) or tank (tank):
- the current case selected also goes to a global variable, which is sent to the dashboard data vi to be sent to the dashboard, which has an added display for the current mode.

I wish I still had the code, but as far as i can tell it is lost... if I do happen to find it, i will post it.
__________________
Dean's List Semi-finalist 2010
1747 Harrison Boiler Robotics 2008-2010, 2783 Engineers of Tomorrow 2011, Event Volunteer 2012-current

DISCLAIMER: Any opinions/comments posted are solely my personal opinion and does not reflect the views/opinions of FIRST, IndianaFIRST, or any other organization.

Last edited by ratdude747 : 24-12-2011 at 21:05.