- Name of package is now @openbci/cyton
- Fix bug where parseGanglion could result in a concat of non-buffer types
- Fix bug where
getFirmwarefailed 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
lodashfrom 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-bufferin place ofbuffer - Removed support for node version 5 and below
Utilitieschanged to toutilitiesConstantsis nowconstants- Inidividual functions can now be importated from the utilities module.
- No
stopByteproperty 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
newSampleandnewSampleNoScalein utility file did not havevalidistrueproperty.
- 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 returnaccelDataCountsproperty 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
timeStamptotimestampthis 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
validof typeboolean,falsewhen error parseing packet,trueotherwise. Onfalsethere will be another property callederrorof typestringwhich contains an error message.
- Add
npm run test-lintto add linting to travis.yml
- Last sample number was confusing to use with
transformRawDataPacketsToSample
- In openBCIUtilities.js add function
transformRawDataPacketToSampleto 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
getChannelDataArrayfor ganglion and daisy data being routed over wifi - Create idea of protocols i.e.
BLE,Wifi, andSerial
getChannelDataArraynow takes object as only arg.
- When not scaling outputs
channelDataCountsinstead ofchannelData
- Fix bug where samples were not properly being extracted
- Renamed
SampletoUtilitiesinindex.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