Hello,
I’m looking for a simple solution for an if condition within my update function that updates too quickly.
I’m using a myo armband to read gestures and I want to create only 1 object when that gesture is collected. Here is the simple if statement:
if(myo.collector.currentPose == myo::Pose::waveIn){
//Do something only once
}
However, since the gesture is detected over the course of several update loops, the code within the if statement actually happens about 5 times after performing the gesture once.
Is there a way to remedy this with a timer? Any ideas?