AJ Keller
f618dcd038
Linting well and added auto tests for new impedance stuff
2017-03-02 12:58:12 -05:00
AJ Keller
95d6529e3a
Fixes #28 - Impedance not working properly
2017-02-11 17:44:21 -08:00
AJ Keller
2523f72059
Update readme for new functions and emitters
2017-01-03 23:30:59 -05:00
AJ Keller
af9f08642e
Fix #131 and add example for daisy with hardset
2017-01-03 23:17:40 -05:00
AJ Keller
c2958f408e
Add tests for new daisy code and Enh separated radio tests from main board test
2017-01-03 22:44:17 -05:00
AJ Keller
0dd0eceb46
Add: max channel support for simulator
2017-01-03 22:44:16 -05:00
AJ Keller
de381a80de
Addresses #131 - 16 channels not always working
2016-12-28 16:43:43 -05:00
Karl Semich
47b2df5802
openBCIBoard.js: make use of write promises
2016-11-09 18:59:34 +00:00
Karl Semich
d06b6101e3
Resolve write promises when writes complete. Fixes #91
2016-11-09 18:58:17 +00:00
AJ Keller
600b1b2b28
Merge pull request #121 from khwilson/fix-channelSet-so-promise-only-resolves-one-value
...
Bugfix: channelSet always fails due to bad resolve()
2016-11-07 16:38:00 -05:00
Kevin Wilson
32d011d1f9
Bugfix: channelSet always fails due to bad resolve()
...
The `resolve` function of a Promise takes *exactly one* argument.
All further arguments are ignored. Thus, the newChannelSettingsObject
that was being returned by the channelSet Promise was ignored and
the corresponding value in openBCIBoard was always undefined.
Thus, any calls to channel set would actually break the openBCISample
code as the channelSettingsArray contained an `undefined`.
This fixes the bug.
2016-11-07 15:44:30 -05:00
AJ Keller
2eebde6053
Add strip to EOT function and tests.
2016-11-03 00:29:32 +00:00
AJ Keller
f553cdea35
Fix: Remove promise functions from all internal data processing events.
2016-10-31 19:14:24 -04:00
Karl Semich
c2097670e7
Use bluebird to detect runaway promises and timing events.
...
Plug most runaway tasks, and some other issues, raised by the new infrastructure.
2016-10-31 00:35:59 +00:00
Karl Semich
cfb8071a9d
Improvements for SNTP robustness and occasional test failures
...
Also added an unrelated test to improve coverage
2016-10-31 00:26:10 +00:00
Karl Semich
22aca53dac
New API functions: .isConnected() .isStreaming()
...
All checks for connection state are normalized to use it.
The name `.connected()` may have been more consistent with the rest of
the library, but it would incorrectly evaluate to true in code that
used the old, undocumented `.connected` field, generating hard-to-find
bugs. So `isConnected()` was chosen to avoid that situation.
2016-10-31 00:04:36 +00:00
Karl Semich
9467d8a052
Add unified _disconnected() function to handle serial cleanup
...
also mark _reset function which sounds important but does nothing
2016-10-31 00:01:26 +00:00
Karl Semich
69cd84f446
Merge branch '1.4.0' into 1.4.x-debugging-packet-dump
2016-10-21 09:32:44 +00:00
Karl Semich
2d1285a887
Merge branch '1.4.0' into 1.4.x-throw-invalid-options
2016-10-21 03:42:02 +00:00
Karl Semich
eba46f8e6c
debugBytes fixups, pull review
2016-10-21 03:35:09 +00:00
Karl Semich
f59b41109d
Connection fails if already connected ( fixes #93 )
...
Resources were not being cleaned up previously.
Although failing is somewhat harsh, this fix makes possible errors more visible.
2016-10-20 13:10:05 +00:00
Karl Semich
2904830309
Throw an error if invalid options are passed
2016-10-20 11:49:07 +00:00
Karl Semich
08ce44d4e9
Added a debug option to dump serial traffic
2016-10-20 11:20:12 +00:00
Karl Semich
4b5e4ab0a6
Automate the interpretation of options and defaults.
2016-10-19 23:41:36 +00:00
Karl Semich
83ac939d4e
Updated incorrect default
2016-10-19 21:15:46 +00:00
Karl Semich
1a43a06786
Per PR review, change default fragmentation to 'none'.
...
Also removed associated test changes, and added some missing tests.
2016-10-19 20:43:25 +00:00
Karl Semich
c351f3afd1
Add test: options propagate from public api to simulator
...
Revealed associated bugs which I fixed
2016-10-19 15:17:05 +00:00
Karl Semich
e65707cb31
Merge branch '1.4.0' into 1.4.0-simulate-fragmentation
2016-10-19 14:20:43 +00:00
Karl Semich
884f2f14ee
Frag test adjustment: preserve buffer when parsing reset
...
- fixes bug with fragmented eot after reset which would result in a freeze
- removed daisy board specification in test; after this bugfix it was actually parsed, and conflicts with next tests, which assume 8 channels
2016-10-19 11:22:02 +00:00
Karl Semich
5b70268390
Add simulation for buffer size and latency time ( fixes #63 )
...
Also minor changes to address comments on PR #100
2016-10-19 10:57:38 +00:00
Karl Semich
864469d3d8
Simulate packet fragmentation; fixes #100
2016-10-19 01:31:24 +00:00
Karl Semich
d6fbce3e4c
add autoFind patterns for Linux FTDI
2016-10-17 01:05:47 +00:00
AJ Keller
3e99a77e88
ENH semistandard lint
2016-10-16 16:40:06 -04:00
AJ Keller
031861d2ed
Fix leaked event emitter with time sync, remove extra log statement
2016-10-16 14:47:07 -04:00
AJ Keller
fe2abac07b
Add example for time syncing
2016-09-29 16:10:16 -04:00
AJ Keller
470ee81928
Fix constants not set in constructor
2016-09-29 14:44:59 -04:00
AJ Keller
2c0b2e37d2
Add dropped packet detection
2016-09-29 10:22:02 -04:00
AJ Keller
19f05e362f
Enh upgrade serial port to 4.x
2016-08-09 22:31:36 -04:00
AJ Keller
6cbf99e635
Update for time sync accel sending in 7,8,9 and not 0,1,2
...
Update for new firmware
update readme and changelog for 1.2
Readme and comment patches from teon comments on PR #70
update readme
update readme
2016-08-04 13:37:47 -04:00
AJ Keller
5cf97383b9
Fix time sync, enh to readme, add full sync function
...
Saving
Time offset back to working in auto tests
All tests passing with time sync func
time sync working
Add examples in readme.
General enh and clean up
2016-07-25 17:10:02 -04:00
AJ Keller
77f7946790
Add tutorial for time sync
2016-07-17 21:06:16 -04:00
AJ Keller
9bd83aaf15
Fix sample bug and time sync bug
2016-07-17 19:45:04 -04:00
AJ Keller
918451ebcb
Saving
2016-07-14 16:40:18 -04:00
AJ Keller
a03250502c
ENH Readme
2016-07-14 16:36:25 -04:00
AJ Keller
0cd2e57f96
New Time Sync Protocol
2016-07-14 14:36:27 -04:00
AJ Keller
23e8364185
Saving for the night
2016-07-14 14:34:17 -04:00
AJ Keller
e21160fa4d
ADD tests for simulator radio commands
2016-07-14 14:34:17 -04:00
AJ Keller
6d3813c4e1
Fix version number extraction for buffer
2016-07-14 14:34:17 -04:00
AJ Keller
d8342879cf
Fix teon comments
2016-07-14 14:34:17 -04:00
AJ Keller
3322e9ca5c
Add tests for radio board verification testing
2016-07-14 14:34:17 -04:00