openbci-archive/OpenBCI_NodeJS

Don't emit accelerometer array when 0

Closed this issue · 5 comments

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.

@haniawni this is a proposal from your request.

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

so you're saying don't change it?

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

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.