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
Rx Specific lua params #1362
Rx Specific lua params #1362
Conversation
59c5d97
to
de63704
Compare
Do you think we can change the POWER_MIN/MAX to an array like the TX module. I know that some RX's have 4 values that can be "configured". And have a default power setting as well. |
@pkendall64 well, our initial discussion was just about "low power" and "standard" for RXes option, but yeah now I see some RXes has 4 calibrated value already... i'll get on that once I figured out why my config.commit crashes it :( |
I'm all for Lua params for the RX, but you 100% need to not copy paste code from the TX to make new code out of it. All the Lua functions you've copied we'll now have in two places. Every line of code that's identical or serves the same function needs to be common to both code bases, not copy pasted and possibly modified. I also have a ton of other config changes pending a config version change so I'd like the config storage to be separate so we can get them all at once. We can make the config PR first then you can apply the Lua on top of that once the storage is in place. |
466c17e
to
039865a
Compare
@CapnBry I think this is ready, i'm good with this now or wait for your upcoming config changes |
c8dbac8
to
100697c
Compare
I added a commit that make the commit section a lot cleaner and doesn't require changes to the radio driver code. |
cool! thanks @pkendall64 ! |
faf0abc
to
7da21c8
Compare
b896c30
to
221345e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested with EP and Zorro.
When starting rx wifi lua will lock up. This is probably because the rx is no longer responsive. Can we force a lua refresh back to the device menu?
I ran into this with the "Loan Model" code I'm working on. I think whats happening is the command is sent to the RX, but the LUA then goes into polling mode and the packets can't be delivered to the MSP sender is stuck. Edit: I think the best solution is for the RX to wait for poll message (which sets the status back to idle) and introduces a 1/2 second deferred execution of the action. Doing this will allow the status message to be returned via the radio to the TX module so it can stop it's polling/waiting. |
ugly code base but working fix conflict cleanup before it gets messy
clean up more cleanup more cleanup enlarge packet size
fix lua power config
add the other rxes
add others ower array
This reverts commit aef1efb.
* Define radio chip in target Rather than relying on regulatory domain which should only be used for FHSS * Move radio define to ini files * Add missing =1 * Change RADIO_SX1280 to RADIO_SX128X
3b64014
to
e29ffb3
Compare
Hi! telemetry power to rx Can't see any rx settings in current FW |
@RM-FPV it's in master branch already. |
Is it in V2.4.0 ? |
@RM-FPV if you don't know how to flash master branch, it would be better to stick with the released version (or jump to discord and we can help you if you really want to use master). anyway this will be available in 3.0. |
add ability to change some RX specific parameters, such as Antenna diversity capable RX doesn't have to rebuild firmware to activate or deactivate Diversity mode.
edit :
this PR now adds these parameter to each RX :
wifi connectivity > enable RX wifi
, is a broadcast command to all rx that are powered on)