View Single Post
  #10   Spotlight this post!  
Unread 15-02-2012, 00:33
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

Quote:
Originally Posted by ratdude747 View Post
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.
reviving the thread briefly to add the source code; I found an old flash drive the just by chance had a copy

included in the .zip:

robot source code
driver station source code
driver station .exe

It was designed to be used with Logitech wingman extreme 3d joystics (I donated an old pair I had sitting). it also uses the left joystick's throttle to scale the speed as the bot it was written for had an unusually high drive gearing (at full speed it was known for flinging batteries )

maybe this will be useful in the future to somebody...
Attached Files
File Type: zip 6wd extreme.zip (364.0 KB, 11 views)
__________________
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.