New LUA scripts & widgets#3
Conversation
…ns for mk3 and 1 column for small screen radios
The @deprecated annotations are intentional for consumers, but LuaLS flags them as warnings when checking the library itself.
Changing Output Ch now loads distinct Input Ch, Output Mode, and Invert values from a per-channel config table, mimicking RXParameters.cpp firmware behavior. Editing siblings saves back to the current channel.
Add name, authors, urls, screenshots, and keywords fields. Rename the existing `name` field to `id` to match the manifest schema.
Enforce the per-branch minimum at runtime in both LVGL and BW UIs and update the manifest pre-install gate. Drop unreachable lvgl-nil fallback code in ui/lvgl.lua.
Move the Architecture table and CRSF Simulator section out of the user-facing README and into a new docs/development.md. Add a Make targets reference covering setup, quality checks, and deployment.
LVGL command popup now renders the live info string the device sends on each CMD_QUERY poll, via a getInfo getter passed into CommandPage (keeps the page decoupled from Protocol). Add a multi-step progress command to the CRSF simulator so the polling status updates can be tested.
Completion is detected in Protocol.fieldCommandLoad (which nils fieldPopup inside poll(), before UI.render()), so the UI popup handlers' CMD_IDLE branches were unreachable and never reloaded anything. Re-read the command's same-level fields there via reloadRelatedFields so the current page reflects values the command changed, and remove the dead UI completion branches. Add a Gyro folder (Orientation + Detect Orientation command) to the simulated RX so the behaviour is testable in the simulator.
|
I've only gotten through the VTX Admin widget and some of the base code. There's a lot to get through and so much awesome functionality! VTX AdminFix?
Minor
Cosmetic
Future
|
|
I do love that new TOOLS script. Every bit of functionality there seems to do exactly what you want it to and looks good. I haven't had a chance to run through it on B&W yet, but will do that tomorrow. My major concern on the rest of this is the duplication of code between the tool script and the widgets (which use the common CRSF). That and all the polling that is going on in Telemetry/VTX Admin needs to be removed-- I think it is unacceptable to waste packets for cosmetics. VTX Admin can poll just for the channel change, but should be gated behind like LQ > 90% or something. The rest I think needs to go. CRSFMinor
TOOLFix?
Telemetry WidgetFix?
Minor
Cosmetic
General
|
|
And B&W works as well. Here's just a couple more though
This concludes my initial review, thank you for your patience! EDIT: I should also say I love the lazy loading. It is so good I had to verify that it was working correctly with some debug logging on the TX module. Perfect execution to background load on the TX but not the RX for those 50Hz people. |
|
@CapnBry thank you for your excellent feedback. I will address it in the upcoming weeks. |
No description provided.