Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Synthetic data #34

Merged
merged 3 commits into from
Apr 21, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add data to synthetic board
Signed-off-by: Andrey Parfenov <[email protected]>
  • Loading branch information
Andrey1994 committed Apr 21, 2020
commit 59fded10c6262d821b5d6f5a6045b68a1471372a
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;
};
Loading