Repository navigation
Antenna group select - #3684
Antenna group select#3684
Conversation
lol I have just the thing to test this with! |
mha1
left a comment
There was a problem hiding this comment.
Changing, saving, retrival of the Antenna Group HW Config (WebUI) and Lua settings work fine using an ER6 (with the same GPIO for Antenna selection).
# Conflicts: # src/html/src/utils/hardware-schema.js # src/include/hardware.h # src/include/target/Unified_ESP_RX.h # src/lib/OPTIONS/hardware.cpp
# Conflicts: # src/html/headers/web-lr1121-rx.h # src/html/headers/web-lr1121-tx.h # src/html/headers/web-sx127x-rx-8285.h # src/html/headers/web-sx127x-rx.h # src/html/headers/web-sx127x-tx-8285.h # src/html/headers/web-sx127x-tx.h # src/html/headers/web-sx128x-rx-8285.h # src/html/headers/web-sx128x-rx.h # src/html/headers/web-sx128x-tx-8285.h # src/html/headers/web-sx128x-tx.h
73aca8a to
686f8fb
Compare
|
This works, and hooray for unused bits in the config struct making this an easy update there. I agree with Mickey though, this sort of locks manufacturers into having just u.FL and Internal. Should we use more generic naming as he suggests? Or add string properties to the firmware system and this could just be in the hardware.json what the two options are? haha I joke, let's save that for when the generic name isn't good enough for someone. Or maybe it just becomes a generic 1 bit toggle that a manufacturer can use for anything so both the Lua property name and the values would be strings in the json whoa I am getting carried away. |
CapnBry
left a comment
There was a problem hiding this comment.
@pkendall64 If you want to change the tag on this to 4.1 that's fine with me. The code you've made is so straight-forward we couldn't possibly break anything! 😅
Summary
This PR adds RX-side support for a secondary antenna group select pin (ant_group) and wires it all the way through to Lua as Ant. Group with External / Builtin options.
In short: the user can now choose which antenna bank to use, e.g internal SMD antennas vs externally connected antennas. Leaving the RX to still argue about antenna A vs antenna B.
What changed
Hardware / target plumbing
ant_groupant_ctrlant_grouppin definitionRX config
RX Lua
Why
Because you can never have enough antennas sticking out your quad!
This allows RX hardware to have two separate antenna-related controls:
ant_ctrl— select antenna A/B or diversity behavior (this is all we had previously)ant_group— select which antenna group/port is active, such as external u.FL vs built-in SMD antenna