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

Freeeeg128 #662

Merged
merged 14 commits into from
Aug 13, 2023
Merged

Freeeeg128 #662

merged 14 commits into from
Aug 13, 2023

Conversation

TedAhmadi
Copy link
Contributor

I fixed the issue we have with a compile error, can you please compile it again?

Add new board id to BoardIds enum: "Freeeeg128_Board = 52"
Add new board id to BoardIds enum: "FREEEEG128_BOARD = 52"
Include the: #include "freeeeg128.h" and also add new condition to switch
Add new jason board: "brainflow_boards_json [52], Freeeeg128"
Add the folder for Freeeeg128 to add #.h & #.cpp
file deleted
update #.h
not sure about following
    static constexpr int start_byte = 0xA0;
    static constexpr int end_byte = 0xC0;
    static constexpr double ads_gain = 8.0;
    static constexpr double ads_vref = 2.5;
Update the "BOARD_CONTROLLER_SRC" to include freeeeg128
update the docs file
Note: need to add the pic of device and add the website link
fixed the boards_json
fixed the FREEEEG128_BOARD
void FreeEEG128::read_thread ()
{
int res;
constexpr int max_size = 200; // random value bigger than package size which is unknown
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@TedAhmadi did you test it?

I dont fully understand how it can work, since here max size is 200 and you set min_package_size to 1 + 128*3 which is bigger

Copy link
Member

@Andrey1994 Andrey1994 Aug 6, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

actually there should be a segfault or no data in buffer

Signed-off-by: Andrey Parfenov <a1994ndrey@gmail.com>
@Andrey1994
Copy link
Member

I pushed some changes to avoid copypaste between freeeg32 and 128, please pull and test them. I suppose there was a bug and more likely it didnt work before and I cannot test it

@Andrey1994
Copy link
Member

Andrey1994 commented Aug 6, 2023

also you need to validate sampling rate, record data for 10 seconds, store in a file and confirm that there are around 10 * sampling rate(256) rows in resulting file

@Andrey1994
Copy link
Member

no updates, and still not sure if it works or not. That should not damage the operation of freeeg32, so I will merge it, but will not update website with info about freeeg128 support and will not promote it anywhere

@Andrey1994 Andrey1994 merged commit 1e8ce33 into brainflow-dev:master Aug 13, 2023
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants