hcilab / MyoStream

A reusable tool for Processing allowing the streaming of EMG data directly from the Myo armband through Bluetooth Low Energy
4 stars 2 forks source link

EMG samples should be exposed through a data stream. #4

Open aarontabor opened 8 years ago

aarontabor commented 8 years ago

Currently, a caller of the MyoEMG class acquires EMG samples by instantiating an instance, and then repeatedly calling the instance's getSample() method. A more elegant interface would provide the caller with a reference to a stream of Sample objects where they could simply read data from.

aarontabor commented 8 years ago

Exposing data through streams would also provide us with a clean approach for streaming additional data (e.g., IMU) in the future. Each type of data could be sent through a separate stream.