|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#9
|
||||
|
||||
|
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. Last edited by ratdude747 : 24-12-2011 at 21:05. |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|