Skip to content

Keep the VTX Admin channel across reboots - #38

Merged
jurgelenas merged 2 commits into
unified-lua-lspfrom
persist-vtx-admin-channel-across-reboots
Oct 4, 2026
Merged

jurgelenas merged 2 commits into
unified-lua-lspfrom
persist-vtx-admin-channel-across-reboots

Conversation

@jurgelenas

@jurgelenas jurgelenas commented Oct 3, 2026 •

Copy link
Copy Markdown
Member

On boot the widget wrote the 6POS boot position's preset to the module. Since EdgeTX 2.12.0 that's position 1 unless the switches start on "Previous" (always on Mk2/V16), so the VTX reset to preset 1.

  • First 6POS reading after boot or a source change is recorded, not written
  • Lit preset cell follows the module's band/channel
  • New "Apply at Startup" option (off by default) applies and pushes the 6POS preset on model load

The widget applied the 6POS boot position to the module once discovery
finished, assuming customizable switches restore their previous
position. Since EdgeTX 2.12.0 new models start SW1 on and SW2-SW6 off,
and the analog 6POS (TX16S Mk2, V16) always boots on position 1, so
every boot rewrote the module's VTX Admin to preset 1 and the module
sent it to the VTX on link-up.

The first reading from a 6POS source, at boot or after a source change,
is now recorded without a write, as the Send VTx trigger already does.
Only switch moves and collection changes retune. A move made during
discovery is still held until the widget is ready.

The lit preset cell follows the module's band and channel rather than
the switch, which can disagree after boot. When several presets match,
the switch position wins.
@jurgelenas

Copy link
Copy Markdown
Member Author

Tested on both TX16S MK2 and MK3 and it feels more natural this way.

@jurgelenas
jurgelenas requested a review from CapnBry October 3, 2026 18:35
Off by default: the module keeps its VTX Admin channel on model load.
On: the first 6POS reading applies its preset and pushes it to the
VTX, as the link may already be up after a model switch. Useful only
where the 6POS remembers its position, e.g. TX16S Mk3 switches set to
start at Previous.

@CapnBry CapnBry left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Everything about this works absolutely perfectly. :chef-kiss: Thanks for making it an option.

@jurgelenas
jurgelenas merged commit b52c5f2 into unified-lua-lsp Oct 4, 2026
@jurgelenas
jurgelenas deleted the persist-vtx-admin-channel-across-reboots branch October 4, 2026 16:35
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.

2 participants