Skip to content

Add threading support#320

Open
nekomona wants to merge 2 commits intoSlimeVR:mainfrom
nekomona:threading
Open

Add threading support#320
nekomona wants to merge 2 commits intoSlimeVR:mainfrom
nekomona:threading

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.

@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