Conversation
|
I compiled edgetx with deadzone. But there are problems with saving the settings. On reboot, the settings are lost:
|
|
Well, I can update "Currently, untested. " to "Tested, but settings borked". 🤪 Thanks for the feedback... it's probably in how I modified the yaml struct to save the setting... I was honestly surprised it let me just add add it without spitting the dummy... so have to play with that tomorrow or Sunday. |
|
I agree with you, you can add that it was tested and bugs were found while saving the settings. |
|
Found two suspicious things in radio/src/targets/nv14/CMakeLists.txt:
I tried to change it, but the bug didn't go away... |
|
Is there a need to check #1777 on NV14 now? |
It should work now with the latest changes. But I think we should avoid adding the extra byte if we can avoid it: there are some padding bits (implicit) at the end of the structure. |
Imported from open-flysky/Flysky-OpenTX-Test-Branch
|
@Ktr128 I'm off to bed now, but I'm hoping the next build is looking more like final state if you want to give it a spin... |
|
pfeerick goodnight! |
|
@raphaelcoeffic I think this raises a couple of points to discuss...
Another thought, if it stays where it is... full or half width? |
|
If the user's point of view is appropriate at this stage... |
IMO it's the most important view! 😄 You have to use it, after all... if the option being there was quickly found, sounds like it is in the right place. And I'm more inclined towards half-width also... seems consistent and it's not like the width is needed. |
|
@pfeerick would you like me to finish the Companion side (Hardware) for you? |
|
Oops... Nearly forgot that... Yes please! But please hold off until I check in with Raphael on status of PR incase I need to change radio side... |
|
@elecpower All good... go for it... it's staying as it is. |
Try this out and advise if needs tweaking |
|
No tweaking necessary... reading, changing and writing new value works perfectly... thanks! :) |
Imported from open-flysky/Flysky-OpenTX-Test-Branch * companion: Don't nuke `stickDeadZone` setting * Implement data storage properly * Add missing check for NV14 storage struct sizes * Formatting * Use one less byte in the packed data struct Thanks @raphaelcoeffic :) * Move setting of stickDeadZone default * Use a Choice combo rather than NumberEdit * Good riddance magic number * Also set default stick zone if setting is missing * Teach tests about `STICK_DEAD_ZONE` * Tweak choice width * Cpn NV14 add stick dead zone to hardware and section labels * Cpn NV14 align default pot names to radio Co-authored-by: elecpower <neilh713@tpg.com.au>
|
Can this be added for all radios? |



Summary of changes:
Currently, untested.Is now upgraded to status of "deadzone works, but monkey implementing settings storage screwed up". Weekend problem.Also, radio hardware option would probably be better as a
Choicerather thanNumberEditsince it is limited to 7 options. However, it should be sufficient to see if this is the resolution.May resolve #1756