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
Adds support also for correct Alps EC10E roller hookup #11
Conversation
…irmware with RadioMaster TX16S and DragonLink V3.
Enhanced roller update (thx to Mike Blandford https://www.rcgroups.com/forums/showpost.php?p=46929617&postcount=9974 )
Thx to Mike Blandford (https://www.rcgroups.com/forums/showpost.php?p=46929617&postcount=9974) Supports also correctly wired up Alps EC10E encoder on T16 Family radios.
Not part of this branch
Not part of this branch
Not part of this branch
Not part of this branch
Not part of this branch
Not part of this branch
@rotorman |
the encoder check code change is in the branch for #if (defined(RADIO_FAMILY_T16) && !defined(RADIO_T18)) || defined(RADIO_TX12) but the change of the granularity is only for #elif defined(RADIO_FAMILY_T16) && !defined(RADIO_T18) while it is not changed for #elif defined(RADIO_TX12) Is this correct? I do not know, but it looks like this might not be correct |
Hi Olli, yes I tested the change with the factory RM TX16S roller board AND with my modded board - works with both. Mike also said this that this code will work with both, and it sure does. About the GRANULARITY - this could be simplified to
But I wanted to left the code for now so, that it is easy to follow what I changed (just one value). But indeed, might make more sense to change it to be the short form. I'll fix this ASAP. About TX12, dunno if this works. |
I gave it some further thought, and yes, this should be 2 also for TX12, as the same code is used in rotary_encoder_driver.cpp for TX12 as well. As Mike's code works with both encoder hookups, 2 is the correct value. I'll do a new commit ASAP. |
I didn't meant to imply it would not work, I have seen it myself that it works, but "works" is not equal to "works", this word can mean all sorts of things e.g. it is also said that the original roller code "works", yet every once in a while it could give a wrong reading making the selection jump unexpectedly because it is a workaround for that hardware flaw (that's at least what I was told by a dev that this is what it is), so, it does work, but also does not work in the sense of how it would work if there wouldn't be the hardware issue,... so "works" is not equal to "works" what I'm trying to understand better for the native hardware is how it "works" in comparison to the original code, is it doing really exactly the same? Is it maybe even better? Is there any difference as compared to before? |
@rotorman MANY THX for this |
Thx. And my bad in the first place, making a pull request to the wrong branch. |
well, it's not your fault I think, since it's the default to go to the base branch, as said, I need to sort this out |
@3djc made a PR for OpenTX 2.3 of Mike Blandford code for roller 3h ago as well ;) |
Supports, in addition to factory T16, TX16S mistaken roller hookup, also correctly wired up Alps EC10E encoder on T16 Family radios.
Thx to Mike Blandford for the code (https://www.rcgroups.com/forums/showpost.php?p=46929617&postcount=9974)
Corrected roller schematic and pictures in EdgeTX PR 261: EdgeTX/edgetx#261