View Single Post
  #2   Spotlight this post!  
Unread 18-02-2012, 08:39
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,753
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Kinect problems please help!

The issue is that tracked means that the Kinect processing code knows where your foot is. It doesn't mean that it moved. If you check that the foot is tracked and check that the position is different by a large enough amount, that would be a better trigger.

More than likely, you probably want to look at a single measure of the foot, just the Y if you want to raise it, just X if you step to the side, or just z if you step forward. And you will likely want to make it a relative compare, between the foot and hip for instance, and give it a threshold that you have to cross.

If you have an English sentence such as ...
When my right foot moves twelve inches to the right of my hip, I want the pneumatic ram to push the basketball into the spinning flywheel.

then you can translate that into code. Discuss the sentence with the appropriate team members first so that you know what the trigger is, and then write the code. Post it if you want confirmation.

Greg McKaskle