Repository navigation
Allow arbitrary number of headtrack channels - #3373
Conversation
|
Added do not merge tag because this will need a rework following #3363 to resolve the blocker. I also don't know what a "B" maintainability rating on new code means so thanks for that, AI |
0982ce8 to
aad7701
Compare
|
Updated to use the concurrency mechanism from #3363. I added b1633a5 as well as I forgot this copy happened in that PR. It doesn't make much difference here though, as the New blocker added with hack work around! As a hack I've forced it to not send it OTA but this will need some other fix because mine is a giant hack. |
pkendall64
left a comment
There was a problem hiding this comment.
We can remove the HACK part as part of the TX USB PR #3378
|
Yeah so let's hold off for that PR, then I'll rebase and this one can go without the HACK bit. |
baeb970 to
06300c6
Compare
|
Updated to use the new Tested with pedal backpack and betaflight, still working. Ready for review. |
Alters our
MSP_ELRS_BACKPACK_SET_PTR(headtracking channel data message) to support any number of channels, 0 to 16. The purpose of this is to allow a wireless pedal that only writes a single channel, or sending as many trainer channels as we want to EdgeTX.Values which should not be updated should be set by the MSP sender to 0xffff or just don't include them-- the 0xffff value is only needed for sparsely overriding some channels. Note any time a
MSP_ELRS_BACKPACK_SET_PTRMSP packet is received, it must include all overriden channels, we will not merge multiple headtracker inputs, although that is possible if we store a per-channel timeout instead of a global one.Test Object
The Pedal backpack branch is on my github and not ready for PR yet, but works with ESP development boards for testing. The simplest pedal is an ESP32 devkit, where the boot button is the pedal input (Pedal_ESP32_Backpack_via_UART environment). There's also a working ESP32S3, but the ESP32C3 drops a lot of ESPNOW updates so don't use that one.
Blocker (sort of)
EDIT: Resolved in #3362
In testing I found our headtracking implementation is a little busted right now and for some packets will not properly override the value due to a concurrency issue between the handset reading process and the OTA copy process. Details here: #3363 (comment)This happens on master so it has nothing to do with these changes.