openbci-archive / OpenBCI_NodeJS

Node.js SDK for the all OpenBCI Biosensor Boards
https://www.npmjs.com/package/openbci
137 stars 52 forks source link

Don't emit accelerometer array when 0 #75

Closed andrewjaykeller closed 7 years ago

andrewjaykeller commented 8 years ago

The OpenBCI firmware sends packets at 250Hz, however the accelerometer is only at 25Hz. This leads to accelerometer data only being sent every 10 packets.

Proposal is to align standard with time synced packets in that an auxData Buffer 6 bytes long is emitted with every sample and if the data is greater than zero we will omit an accelData array with converted and scaled accelerometer values.

andrewjaykeller commented 8 years ago

@haniawni this is a proposal from your request.

teonbrooks commented 8 years ago

keeping it periodic will make it a lot easier if you are trying to interpolate this signal to match the sampling rate of the EEG data

andrewjaykeller commented 8 years ago

so you're saying don't change it?

teonbrooks commented 8 years ago

I guess I don't understand the problem so clearly. occasionally the data are zeros?

andrewjaykeller commented 8 years ago

yeah at the data rate of 250Hz one would only get valid accel data every 10 samples. So it was confusing for @haniawni as to why some array's had data while others did not.