Skip to content

Commit

Permalink
Merge pull request #34 from Andrey1994/synthetic_data
Browse files Browse the repository at this point in the history
Synthetic data
  • Loading branch information
Andrey1994 committed Apr 21, 2020
2 parents 4e421da + 9a03173 commit 4e0911b
Show file tree
Hide file tree
Showing 5 changed files with 185 additions and 160 deletions.
14 changes: 10 additions & 4 deletions brainflow_boards.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,22 @@
"boards": {
"-1" : {
"name": "Synthetic",
"sampling_rate": 256,
"sampling_rate": 250,
"package_num_channel" : 0,
"timestamp_channel" : 12,
"num_rows" : 13,
"battery_channel" : 18,
"timestamp_channel" : 19,
"num_rows" : 20,
"eeg_channels" : [1, 2, 3, 4, 5, 6, 7, 8],
"eeg_names" : "Fz,C3,Cz,C4,Pz,PO7,Oz,PO8",
"emg_channels" : [1, 2, 3, 4, 5, 6, 7, 8],
"ecg_channels" : [1, 2, 3, 4, 5, 6, 7, 8],
"eog_channels" : [1, 2, 3, 4, 5, 6, 7, 8],
"eda_channels" : [1, 2, 3, 4, 5, 6, 7, 8],
"accel_channels" : [9, 10, 11]
"accel_channels" : [9, 10, 11],
"gyro_channels" : [12, 13, 14],
"eda_channels" : [15],
"ppg_channels" : [16],
"temperature_channels" : [17]
},
"0" : {
"name": "Cyton",
Expand Down
8 changes: 2 additions & 6 deletions src/board_controller/inc/synthetic_board.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,6 @@ class SyntheticBoard : public Board
bool is_streaming;
std::thread streaming_thread;

int num_channels;
float amplitude;
float shift;
float noise;
int sampling_rate;

void read_thread ();

public:
Expand All @@ -32,4 +26,6 @@ class SyntheticBoard : public Board
int stop_stream ();
int release_session ();
int config_board (char *config);

static constexpr int package_size = 19;
};

0 comments on commit 4e0911b

Please sign in to comment.