View Single Post
  #9   Spotlight this post!  
Unread 04-12-2003, 10:01
Mike Soukup's Avatar
Mike Soukup Mike Soukup is offline
Software guy
FRC #0111 (Wildstang)
Team Role: Engineer
 
Join Date: May 2001
Rookie Year: 1996
Location: Schaumburg, IL
Posts: 797
Mike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond repute
Re: Help On Coding 2K1 Controller

Quote:
Originally Posted by GregTheGreat
Now heres the real kicker..... I am using the 2.0 software as well as the 2.0 default program.... I was tempted to run the 2003 default software but I didn't know if it was compadable.
Yes, you can use the new editor / tokernizer and the new code with an older controller. We used either the 2002 or 2001 controller with our prototype robot and the exact same code as our real robot this year and we did not have any problems with it. It worked exactly like the 2003 controller.

As you mentioned, it's odd that the problem is only on ports 1 & 3. Both of those are read in and stored in 'oi_swA' so that's the first place to look. I've fogotten some of the common coding problems in the old controller, but the ones I remember - telling the controller you want to grab the byte from the stream, and actually including the byte in the stream - look good. Try printing out 'oi_swA' immediately after it's read in from the data stream.