- Fix bug where parseGanglion could result in a concat of non-buffer types
- Fix bug where
getFirmware
failed for patch or minor versions over 9 (aka double digits)
- Protect and ensure buffer returned for raw data packets
- Add raw of version to
getFirmware
- Bump mathjs to 4.0.0 to resolve insecurity
- Removed
lodash
from dependencies to reduce bundle size (thanks @alexcastillo!!)
You can now use this module in the browser!! Huge should out to @alexcastillo for help with making with refactoring the project!
- Removed simulator file back into cyton repo
- Removed
safe-buffer
in place ofbuffer
- Removed support for node version 5 and below
Utilities
changed to toutilities
Constants
is nowconstants
- Inidividual functions can now be importated from the utilities module.
- No
stopByte
property for daisy samples. Added tests.
- Accel data with counts did not work for cyton with daisy over wifi.
- Had incorrect ganglion accel multiplication factor of 32mg per count but was really 16mg per count
newSample
andnewSampleNoScale
in utility file did not havevalid
istrue
property.
- Add new constants for emitter
- Fix bug where ganglion sample channel data when scale was false produced array of 8 values instead of 4
- Add function for parsing an impedance object
.parsePacketImpedance()
- Fix wrap around bug in extractRawBLEDataPackets
- Accel data with counts did not work for cyton with daisy. Also fixed up some test errors with the effected functions.
- Add features for
openbci-ganglion
- With scale option false,
.parsePacketStandardAccel()
.parsePacketTimeSyncedAccel()
will now return array called will now returnaccelDataCounts
property with un-scaled data.
- Was missing errors in constants used by ganglion and other ble projects.
- Fixed getChannelData functions to support 2 channel cytons
- E-patch on new function added 0.1.3
- A bunch of functions to support synchronization of channel settings with cyton. Will be used by both the Wifi and the Cyton node modules.
- Send counts did not work for daisy.
- Sample output was inconsistent
- Fixed
timeStamp
totimestamp
this was pr #147 (thanks @alexdevmotion)
- Send counts did not work for daisy.
- Add function
getFirmware(dataBuffer)
to utilities
- Removed function called
findV2Firmware()
because it's useless with v3.0.0 firmware
- Add
boardTypeForNumberOfChannels()
to Constants
- Add impedance calculation functions from cyton
- The simulator from OpenBCI_NodeJS has been ripped out and place into this library! Woo.
- Sample object now has property
valid
of typeboolean
,false
when error parseing packet,true
otherwise. Onfalse
there will be another property callederror
of typestring
which contains an error message.
- Add
npm run test-lint
to add linting to travis.yml
- Last sample number was confusing to use with
transformRawDataPacketsToSample
- In openBCIUtilities.js add function
transformRawDataPacketToSample
to parse a single raw data packet - In openBCIConstants.js add function
rawDataToSampleObjectDefault(numChannels)
which should be used by drivers to create the object that is passed through each call totransformRawDataPacketsToSample
- Could not use 'daisy' with sample rate setter.
- Add function in utilities for making daisy packets.
- Add code to
getChannelDataArray
for ganglion and daisy data being routed over wifi - Create idea of protocols i.e.
BLE
,Wifi
, andSerial
getChannelDataArray
now takes object as only arg.
- When not scaling outputs
channelDataCounts
instead ofchannelData
- Fix bug where samples were not properly being extracted
- Renamed
Sample
toUtilities
inindex.js
- Renamed openBCIUtilities.js to openBCIUtilities.js
- Renamed openBCIUtilities-test.js to openBCIUtilities-test.js
- Added a function in the sample module that parses a raw buffer of OpenBCI data, extracts raw data packets and returns the buffer with just the raw data packets removed. Allowing the user to process other data that is not a raw data.
Initial release