From bcb2a4cd6b66330a8f4b771b0ef4143088c23f14 Mon Sep 17 00:00:00 2001 From: Dano Morrison Date: Sat, 19 Sep 2020 13:31:55 -0400 Subject: [PATCH] Tweaked eeg viewer for muse --- app/components/ViewerComponent.tsx | 7 ++++--- app/components/d3Classes/EEGViewer.js | 2 +- app/constants/constants.ts | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/app/components/ViewerComponent.tsx b/app/components/ViewerComponent.tsx index a5c6738a..4d395e0f 100644 --- a/app/components/ViewerComponent.tsx +++ b/app/components/ViewerComponent.tsx @@ -113,13 +113,14 @@ class ViewerComponent extends Component { } render() { + const trueAsString = 'true' as any; return ( ); } diff --git a/app/components/d3Classes/EEGViewer.js b/app/components/d3Classes/EEGViewer.js index a12f03d4..bca2f776 100644 --- a/app/components/d3Classes/EEGViewer.js +++ b/app/components/d3Classes/EEGViewer.js @@ -14,7 +14,7 @@ class EEGViewer { this.zoom = 1; this.zoomScalar = 1.5; this.canvas = d3.select(svg); - this.margin = { top: 20, right: 10, bottom: 0, left: 20 }; + this.margin = { top: 20, right: 10, bottom: 0, left: 30 }; this.channelMaxs = new Array(this.channels.length).fill(100); this.channelMins = new Array(this.channels.length).fill(-100); this.lastTimestamp = new Date().getTime(); diff --git a/app/constants/constants.ts b/app/constants/constants.ts index 6749905b..ec767725 100644 --- a/app/constants/constants.ts +++ b/app/constants/constants.ts @@ -109,7 +109,7 @@ export const EMOTIV_CHANNELS = [ 'AF4', ]; -export const MUSE_CHANNELS = ['TP9', 'AF7', 'AF8', 'TP10', 'AUX']; +export const MUSE_CHANNELS = ['TP9', 'AF7', 'AF8', 'TP10']; export const ZOOM_SCALAR = 1.5; export const MUSE_SAMPLING_RATE = 256;