View Single Post
  #3   Spotlight this post!  
Unread 19-01-2005, 22:07
Jon236's Avatar
Jon236 Jon236 is offline
Registered User
AKA: Jon Mittelman
FRC #2648 (Infinite Loop)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2000
Location: Windsor, Maine
Posts: 741
Jon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond repute
Re: Multiple command_lists

Quote:
Originally Posted by chakorules
If it was me, we have used thumb wheels in the form of binary input to some digital I/O. So we work out which program we are going to run before the match starts, set the thumb wheel to select the program we want to run. In code it sort of looks like this:

Code:
if (thumb_wheel = 1)
	{
	do these commands;
	do these commands;
	do these commands;
	do these commands;
	}


if (thumb_wheel = 2)
	{
	do these commands;
	do these commands;
	do these commands;
	do these commands;
	}

if (thumb_wheel = 3)
	{
	do these commands;
	do these commands;
	do these commands;
	do these commands;
	}
Godd idea....but what I was wondering was how to list the different lists...can you put them in different .h files or all in the code files?