View Single Post
  #3   Spotlight this post!  
Unread 22-12-2011, 10:07
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Creating a program that switch between tank and arcade

What language are you using?

In LabVIEW it's easy: just put the two different drive functions in separate cases of a CASE structure, and use whatever you have controlling which mode you want to select the appropriate case. In C++, use an if/then/else to drive it in one fashion or the other. Java should work just like C++.