View Single Post
  #11   Spotlight this post!  
Unread 20-02-2012, 15:39
JChavis's Avatar
JChavis JChavis is offline
Team 3490's "Pro./Electrician"
FRC #3490 (Vyper Drive)
Team Role: Leadership
 
Join Date: Jan 2012
Rookie Year: 2007
Location: Summerville, SC
Posts: 52
JChavis is an unknown quantity at this point
Re: Kinect Boolean Programming

Quote:
Originally Posted by RufflesRidge View Post
I would get rid of the two small case structures inside. Just put your non-Kinect auto code there. If there are 0 players, either the Kinect isn't being used or your player is not detected, either way you want to just run auto. If there are two players, you are not necessarily going to get good data from the Kinect so I would just run the auto code there as well. This means that if "players" is anything but 1, you want to run your auto code, which is what your larger outside case structure will do.
Oh, I didn't mean for the two inside structures to mean that it is a part of the program, I just put them there to show different examples...
__________________
Hmmm....I wonder if I can create a robot lawnmower with the knowledge I have gained from FRC.....
Reply With Quote