View Single Post
  #3   Spotlight this post!  
Unread 18-02-2012, 14:54
Rogue Leader Rogue Leader is offline
Registered User
FRC #0696 (Circuit Breakers)
Team Role: Programmer
 
Join Date: Feb 2012
Rookie Year: 2011
Location: Glendale, CA
Posts: 78
Rogue Leader is an unknown quantity at this point
Re: Kinect problems please help!

Yeah, your code is just saying "If the Kinect can see my foot, then do this code; if not, do this code." You need to change the code to have it based on where your foot is. However, I have no idea how to do this... I believe you find the x and y coordinates of you foot, and then base your code on those numbers. But don't make them exact numbers. Make then in a limit by using the "Range and Coerce" block from the comparison palette. It should allow you to base the cases on where your foot is. I would use this because your foot won't be able to stay in one exact coordinate for more than a few milliseconds.

Hope I helped!