Skip to content

Commit befae45

Browse files
author
AJ Keller
authored
Merge pull request #19 from aj-ptw/development
FIX: Add valid property to new sample objects
2 parents 0efecb5 + 40015c7 commit befae45

File tree

4 files changed

+13
-4
lines changed

4 files changed

+13
-4
lines changed

changelog.md

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# v0.2.5
2+
3+
### Bug Fixes
4+
5+
* Had incorrect ganglion accel multiplication factor of 32mg per count but was really 16mg per count
6+
* `newSample` and `newSampleNoScale` in utility file did not have `valid` is `true` property.
7+
18
# v0.2.4
29

310
### New Features

openBCIConstants.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ const obciGanglionAccelAxisY = 2;
438438
const obciGanglionAccelAxisZ = 3;
439439

440440
/** Accel scale factor */
441-
const obciGanglionAccelScaleFactor = 0.032; // mG per count
441+
const obciGanglionAccelScaleFactor = 0.016; // mG per count
442442

443443
/** Ganglion */
444444
const obciGanglionBleSearchTime = 20000; // ms

openBCIUtilities.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -1700,7 +1700,8 @@ function newSample (sampleNumber) {
17001700
auxData: null,
17011701
stopByte: k.OBCIByteStop,
17021702
boardTime: 0,
1703-
timestamp: 0
1703+
timestamp: 0,
1704+
valid: true
17041705
};
17051706
}
17061707

@@ -1720,7 +1721,8 @@ function newSampleNoScale (sampleNumber) {
17201721
auxData: null,
17211722
stopByte: k.OBCIByteStop,
17221723
boardTime: 0,
1723-
timestamp: 0
1724+
timestamp: 0,
1725+
valid: true
17241726
};
17251727
}
17261728

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "openbci-utilities",
3-
"version": "0.2.4",
3+
"version": "0.2.5",
44
"description": "The official utility package of Node.js SDK for the OpenBCI Biosensor Boards.",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)