New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

openbci-utilities

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

openbci-utilities - npm Package Compare versions

Comparing version 0.0.5 to 0.0.6

16

changelog.md

@@ -0,1 +1,17 @@

# 0.0.6
### Bug Fixes
* Could not use 'daisy' with sample rate setter.
### New Features
* 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`, and `Serial`
### Breaking changes
* `getChannelDataArray` now takes object as only arg.
# 0.0.5

@@ -2,0 +18,0 @@

26

openBCIConstants.js

@@ -233,4 +233,5 @@ /**

/** Possible number of channels */
const obciNumberOfChannelsCyton = 8;
const obciNumberOfChannelsDaisy = 16;
const obciNumberOfChannelsDefault = 8;
const obciNumberOfChannelsDefault = obciNumberOfChannelsCyton;
const obciNumberOfChannelsGanglion = 4;

@@ -243,2 +244,3 @@

const obciBoardGanglion = 'ganglion';
const obciBoardNone = 'none';

@@ -460,3 +462,3 @@ /** Possible Simulator Line Noise injections */

};
const obciGanglionMCP3912Gain = 1.0; // assumed gain setting for MCP3912. NEEDS TO BE ADJUSTABLE JM
const obciGanglionMCP3912Gain = 51.0; // assumed gain setting for MCP3912. NEEDS TO BE ADJUSTABLE JM
const obciGanglionMCP3912Vref = 1.2; // reference voltage for ADC in MCP3912 set in hardware

@@ -468,3 +470,3 @@ const obciGanglionPrefix = 'Ganglion';

const obciGanglionImpedanceStop = 'Z';
const obciGanglionScaleFactorPerCountVolts = obciGanglionMCP3912Vref / (8388607.0 * obciGanglionMCP3912Gain * 1.5 * 51.0);
const obciGanglionScaleFactorPerCountVolts = obciGanglionMCP3912Vref / (8388607.0 * obciGanglionMCP3912Gain * 1.5);

@@ -490,2 +492,7 @@ /** Simblee */

/** Protocols */
const obciProtocolBLE = "ble";
const obciProtocolSerial = "serial";
const obciProtocolWifi = "wifi";
module.exports = {

@@ -885,2 +892,3 @@ /** Turning channels off */

/** Possible number of channels */
OBCINumberOfChannelsCyton: obciNumberOfChannelsCyton,
OBCINumberOfChannelsDaisy: obciNumberOfChannelsDaisy,

@@ -894,2 +902,3 @@ OBCINumberOfChannelsDefault: obciNumberOfChannelsDefault,

OBCIBoardGanglion: obciBoardGanglion,
OBCIBoardNone: obciBoardNone,
numberOfChannelsForBoardType: boardType => {

@@ -901,2 +910,5 @@ switch (boardType) {

return obciNumberOfChannelsGanglion;
case obciBoardNone:
return 0;
case obciBoardCyton:
default:

@@ -1176,3 +1188,7 @@ return obciNumberOfChannelsDefault;

commandSampleRateForCmdGanglion,
commandBoardModeForMode
commandBoardModeForMode,
/** Protocols */
OBCIProtocolBLE: obciProtocolBLE,
OBCIProtocolSerial: obciProtocolSerial,
OBCIProtocolWifi: obciProtocolWifi
};

@@ -1331,3 +1347,3 @@

let func;
if (boardType === obciBoardCyton) {
if (boardType === obciBoardCyton || boardType === obciBoardDaisy) {
func = commandSampleRateForCmdCyton;

@@ -1334,0 +1350,0 @@ } else if (boardType === obciBoardGanglion) {

2

package.json
{
"name": "openbci-utilities",
"version": "0.0.5",
"version": "0.0.6",
"description": "The official utility package of Node.js SDK for the OpenBCI Biosensor Boards.",

@@ -5,0 +5,0 @@ "main": "index.js",

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc