-
-
Notifications
You must be signed in to change notification settings - Fork 331
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
AAVAA board addition #668
AAVAA board addition #668
Conversation
Could you explain what You can setup this https://brainflow.readthedocs.io/en/stable/BrainFlowDev.html#code-style to fix clang-format CI job |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks really good!
I am not confident that rotation_calib_channel is really needed, looks too specific as for me, maybe it makes sense to move it to other_channels instead.
Also, I dont fully understand what do you mean by rotation_channels but as for me it looks like data from IMU/gyroscrope sensor, and there is a convention to use get_gyro_channels
for it, this way it will be convenient with all other devices
|
In the AAVAA board, we have a pitch/roll/yaw info that is different from gyro info and it is processed on the board itself. I realized it's better to create a new set of commands for those channels as it might get confusing. |
lets remove it or move this data to other_channels if needed, I am trying to dont create too many methods like this. This way, it is more uniform and also less methods to add when adding support for new programming languages |
ok |
Hi! I still have no mac to take a look at the issue with ble on macos, in the meantime do you have any updates on this? Can merge as soon as all checks are passed and rotation_callib channel is removed |
@Andrey1994, I almost gave up after playing around with it for a while. I added some NSLogs in I don't know what else I can do to solve the issue. |
if you try to call connect 3 times like in other BLE boards with the latest changes in macos backend to avoid deadlock do all 3 attemps fail? |
@Andrey1994, Good news! After doing your suggestion, I can connect and it takes roughly 7 seconds, but I find the behaviour somewhat weird, because it connects to peripheral twice. Here is the NSlog output:
|
Good, could you do the final cleanup in this PR? Revert changes in simpleble, drop rotation callib channel method, fix clang format job, and check that it builds with --warnings-as-errors like in CI |
Sure will do that. |
I think its the same for other devices and maybe its the reason why I call it several times, idk much about macos backend in simpleble. Maybe @kdewald can suggest smth. As long as it works we are good to go, if it calls smth a couple of times but does not hang/crash/etc, its ok for me |
I did all of those, except for when I run |
Thanks, its fine, I worry about CI job and seems like there its not a warning, maybe you have a newer version of compiler locally. I see there is a still failing clang-format job, I will fix it by myself, for the future you need to configure this - https://brainflow.readthedocs.io/en/stable/BrainFlowDev.html#code-style with the same clang-format version as in CI job. I will create a new release tomorrow, so your new board will be available using brainflow installed from package managers. |
Couple of final questions:
|
I added the AAVAA V3 board.
Along with the new addition, I had to add more methods for new channel types as well.