Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting sum of number of taps made from 2 tap straps #6

Open
Deadner opened this issue Mar 3, 2020 · 4 comments
Open

Getting sum of number of taps made from 2 tap straps #6

Deadner opened this issue Mar 3, 2020 · 4 comments

Comments

@Deadner
Copy link

Deadner commented Mar 3, 2020

I want to get the sum of number of taps made from 2 different tap straps and output this value. That is, I will be wearing 2 tap straps, one on each hand. Now, suppose I tap 2 fingers of left hand and 4 fingers of right hand, then my output should be 6.

So, on what platform and how am I supposed to do this?

Currently, I am able to connect both my tap straps with my phone/laptop simultaneously. And I was thinking that first I would try to produce the sum of the binary outputs from both the tap. But, I don't have an idea about it...

After doing this, I will change the mapping from TapManager app. Also, can I connect 2 tap straps with TapManager app simultaneously??

I need urgent help with this : |||||

@ilouzl
Copy link

ilouzl commented Mar 4, 2020

Every Tap sends events with a unique tapIdentifier.
You could use a timing mechanism to decide whether events from 2 different Taps arrived 'together' and then just sum their onTapInputReceived data value.

@ilouzl
Copy link

ilouzl commented Mar 4, 2020

Actually, you might use this to decode the data value to the number of tapping fingers

@Deadner
Copy link
Author

Deadner commented Mar 17, 2020

I was going in Debug mode and I am getting- "In raw mode loop" in console and "Connected to the target VM, address: 'localhost:8600', transport: 'socket' " in debugger. So, how am I supposed to connect my 2 tap straps and get information about it.

Can you provide me with some code/part of code to achieve my task?

@ilouzl
Copy link

ilouzl commented Mar 17, 2020

@shahartap may help with some code.

In the meanwhile, please do the following for us to pinpoint the issue:

  1. Make sure the two straps are connected and paired with your device.
  2. Run the example app on your device and do some tapping with the two taps.
  3. Share console output with us.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants