stysk1 / AirBand

CSC355: Human Computer Interaction project using two Myo Armbands to simulate air drumming.
MIT License
2 stars 0 forks source link

Flamming #4

Closed stysk1 closed 5 years ago

stysk1 commented 5 years ago

The drum will double hit if the acceleration gets read and detects multiple values above the threshold. Example here:

acceleration_values

stysk1 commented 5 years ago

Potential way to fix this is by adding a sleep timer that's a little faster than the fastest realistic drumming speed. TODO

stysk1 commented 5 years ago

Fixed in current build. This was done by using a busy wait in the threads for each arm so that another thread cannot be opened until the previous one has finished sleeping.