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

Add threading support #320

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Add threading support #320

wants to merge 2 commits into from

Conversation

nekomona
Copy link
Contributor

This patch adds threading for ESP32 variants, allowing more sensors on a single ESP chip.
At current stage, threading mainly separates network packet building and networking stack from sensor operations.

Depending on #314

Copy link
Member

@TheDevMinerTV TheDevMinerTV left a comment

Choose a reason for hiding this comment

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

Please double check what changes are actually needed.

src/sensors/sensor.h Outdated Show resolved Hide resolved
src/sensors/mpu6050sensor.cpp Outdated Show resolved Hide resolved
src/sensors/icm42688sensor.cpp Outdated Show resolved Hide resolved
@nekomona
Copy link
Contributor Author

Rebased after #314 merging

@TheDevMinerTV
Copy link
Member

Maybe we should put this behind a #define?

@nekomona
Copy link
Contributor Author

Maybe we should put this behind a #define?

#define switches are up -w-

@unlogisch04 unlogisch04 added this to the 0.5.0 milestone May 4, 2024
}

{
networkConnection.sendRotationData(sensorId, &fusedRotation, DATA_TYPE_NORMAL, calibrationAccuracy);
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
networkConnection.sendRotationData(sensorId, &fusedRotation, DATA_TYPE_NORMAL, calibrationAccuracy);
networkConnection.sendRotationData(sensorId, &lquat, DATA_TYPE_NORMAL, calibrationAccuracy);

Shouldn't it be like that?

Also can be combined my taking lquat out of the define and having the same sendRotationData be used.

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.

4 participants