Skip to content

Acceleration and Gyroscope events don't appear #41

@smetanadvorak

Description

@smetanadvorak

Dear Niklas,

Sorry, I've completely rewritten my question here. Previously it was different, but formulated in a wrong way. Hopefully it didn't bother you)

I successfully run your example files, but I face an issue during the use of Listener class in my application. I'm making a PyQt app that visualizes the EMG and IMU data in real time. I've written my own listener, based on your example, that puts all the data into a Queue shared between the listener and parent widget. The problem is that I don't receive orientation events at all. Let's take this code for example:
def on_event(self, kind, event): print(kind)
When a listener with this code is created in main(), like in your example, it prints this:
...
EventType: emg
EventType: emg
EventType: emg
EventType: emg
EventType: orientation
...

in a repetitive way and I find it completely correct.

But when I create the same listener in my widget, it gives only :
...
EventType: emg
...

The listener class I use in both examples is the same. The difference is whether I create it in main() function or in my app's widget. Do you have some idea about this issue?
I do it on OSX El Capitan, armbands are up to date.

Thank you very much!

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions