Skip to content
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

VTX Power switching in flight #4864

Open
craigywsm opened this issue Jun 22, 2019 · 17 comments

Comments

Projects
None yet
7 participants
@craigywsm
Copy link

commented Jun 22, 2019

Hi All,
Please could someone tell me how to change VTX power in flight assigned to a switch?
I have tried using the adjustments page with no luck
Currently using INAV 2.1 with the Matek F722 wing board with the Matek VTX-HV with IRC TRAMP

@issue-label-bot

This comment has been minimized.

Copy link

commented Jun 22, 2019

Issue-Label Bot is automatically applying the label Support to this issue, with a confidence of 0.75. Please mark this comment with 👍 or 👎 to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

@issue-label-bot issue-label-bot bot added the Support label Jun 22, 2019

@teckel12

This comment has been minimized.

Copy link
Contributor

commented Jun 22, 2019

@craigywsm I don't think you can from a switch. But you can from the OSD menu via stick commands. See here:

https://github.com/iNavFlight/inav/blob/development/docs/Controls.md

Of course, that's not in-flight. For in-flight, I believe your only option is to set the pre-arm and arm transmitter level, which in my opinion works great. I have mine set to be 25 mW before launch, goes to 600 mW at launch, and says at 600 mW when disarmed (in case of a crash where getting a view from the camera could help locate the model). There's a setting also that would take the power back down to the lowest power on disarm, if that's what you want.

See the vtx_low_power_disarm option for details.

@craigywsm

This comment has been minimized.

Copy link
Author

commented Jun 22, 2019

Thanks for your info teckel.
Just done some research and found it on the latest 2.2.0 release so i will need to upgrade and re test with the adjustments the setting must have been there for future implementation
https://github.com/iNavFlight/inav/releases
Capture
Could really do with some documentation on how this works if at all possible.
Happy to lend a hand writing it if someone can point me in the right direction.
This might need further development as may need to store the power levels as each vtx has different power levels.

@teckel12

This comment has been minimized.

Copy link
Contributor

commented Jun 22, 2019

@craigywsm That's a new feature I wasn't aware was added! =) I assume it would be done via the Modes tab like all other switch-based controls are configured.

The state of power levels is a mess, There will be no way that INAV can keep up with the different models that are released every week with totally different power levels. Best to just set it to 1-5 or whatever and call it a day.

@L4ky

This comment has been minimized.

Copy link
Contributor

commented Jun 24, 2019

@craigywsm That's a new feature I wasn't aware was added! =) I assume it would be done via the Modes tab like all other switch-based controls are configured.

The state of power levels is a mess, There will be no way that INAV can keep up with the different models that are released every week with totally different power levels. Best to just set it to 1-5 or whatever and call it a day.

No, this function is handled by Adjustments tab.
Just choose your activation switch ( it could be the arm switch ), VTX power level in the dropdown menu, and the command switch which will be the one that will increase/decrease the value.
My advice is to use a 3-pos switch or a stepped-potentiometer ( i don't know the exact name ).

Remember: you don't have to keep your switch up or down too much or you will make more than one step.

Try that on the ground to learn its effectiveness.

P.S. Add VTX power on OSD to see current power level

@CapnBry

This comment has been minimized.

Copy link
Contributor

commented Jun 24, 2019

There's a great video on setting it up and using it on youtube iNav 2.2.0 VTX power change in flight from NoAgenda FPV. I also wasn't aware of this feature until he posted the video. Skip to about 1:30 in the video to get to setting it up.

@P-I-Engineer

This comment has been minimized.

Copy link

commented Jun 24, 2019

i'd prefer this was in modes as well, or is there a way to do position based values instead of incrementing?

if it was modes, i would use a 3 pos switch and set my max values in opentx to set the power level to the switch position.

@L4ky

This comment has been minimized.

Copy link
Contributor

commented Jun 24, 2019

Actually you can not assign values based on position.

You can only increase or decrease current value.

@craigywsm

This comment has been minimized.

Copy link
Author

commented Jun 24, 2019

CapnBry many thanks great video will test this on my setup.
P-I-Engineer and L4ky. Yes it will be like the PID adjustment theory.
I see there could be an issue here as all vtx's have different power levels might be worth adding settings for the ones the VTX can support. Not sure on how the Tramp / Smartaudio with handle the changes
e.g 25mW , 100mw, 500mw
or 25mw, 200mw, 800mw???
With a county override

@P-I-Engineer

This comment has been minimized.

Copy link

commented Jun 24, 2019

my workaround for time based incrementing is going to be a "duration" logical switch. So that moving switch up will increase by one, then back to middle, then back to up to increase again. Same for decrease. That way you don't have to time it with your fingers.

using telemetry you could have it auto increase also with logical switches, but that's not the smartest way to do it, since it's a blind effort.

@L4ky

This comment has been minimized.

Copy link
Contributor

commented Jun 24, 2019

CapnBry many thanks great video will test this on my setup.
P-I-Engineer and L4ky. Yes it will be like the PID adjustment theory.
I see there could be an issue here as all vtx's have different power levels might be worth adding settings for the ones the VTX can support. Not sure on how the Tramp / Smartaudio with handle the changes
e.g 25mW , 100mw, 500mw
or 25mw, 200mw, 800mw???
With a county override

The logic behind all this is "power levels" which are (usually) number from 1 to 5. 25/100/200/500/800 are just labels but they don't exists in the protocols..

At the moment most vtx have 4 or 5 different power levels so not a big issue there.
The problem will be in the future if power level count will increase.

Another user is working on this.. i think you'll see something soon

@P-I-Engineer

This comment has been minimized.

Copy link

commented Jun 24, 2019

here's my opentx work around for 1 position increment.
the duration will need to be tweaked. I haven't tried this on my plane yet, just in companion.

image

image

@noagendafpv

This comment has been minimized.

Copy link

commented Jun 24, 2019

There's a great video on setting it up and using it on youtube iNav 2.2.0 VTX power change in flight from NoAgenda FPV. I also wasn't aware of this feature until he posted the video. Skip to about 1:30 in the video to get to setting it up.

Thanks for sharing, I just stumbled on this and was going to post the link, but you beat me to it.

Now I have to try what PI Engineer did for Auto switching.

@teckel12

This comment has been minimized.

Copy link
Contributor

commented Jun 24, 2019

Now we just need VTx power levels to be set automatically based on distance from home =)

@P-I-Engineer

This comment has been minimized.

Copy link

commented Jun 24, 2019

here's simpler mix. I set it to the throttle trim as well. I added an additional channel so it doesn't flash the whole time.
image

image

image

image

@Jetrell

This comment has been minimized.

Copy link

commented Jul 14, 2019

Hi guys.
To all you that have tried this VTX power level change.
I played around a bit with Companion, while i'm away. But have no way to test it for some weeks.

This OpenTX combo of Logic switches and Special functions. Seems to work in the simulator.
I was wondering if one of you guys with an OpenTX radio could try it out and report back on how it works.
It should perform more like a mode function. It has 4 positions (disarmed 25mw, Pos1, Pos2 and Pos3) I based it on a Unify 25, 200, 500 and 800.

It uses the arming switch to return to VTX to 25mW, when disarmed, and holds it at the lowest position.

Then when the armed, it looks at the location of the 3 Position power selector switch. And from that it selects the appropriate timer required to place the VTX power level at the selected switch position.
It will also speak the power levels when the power level switch or disarming is toggled.

The timers will need to be altered to get it to work correctly. I just based the timers on 0.6seconds, to administer a single change in level. 1.2seconds for two changes. 1.8seconds for three changes.

The zip also contains power level audio files.

VTX power change - OpenTX Logical switches(basic)

VTX power change - OpenTX Special Functions(basic)

VTX power change - OpenTX.zip

@teckel12

This comment has been minimized.

Copy link
Contributor

commented Jul 14, 2019

@Jetrell I've been playing with something similar to automatically set the power level based on distance from home. It's a little messy because you can't directly select a power level.

The plan is to eventually do this automatically right from within Lua Telemetry without any logical switches or special functions. Also, this will allow selecting an exact power level instead of holding a logical switch for a certain amount of time (which is prone to not always working). The thought is something like power level 2 at 100 feet, power level 3 at 1000 feet, etc. Maybe even raise the power level when facing towards the pilot instead of away from the pilot (where the antenna is sometimes blocked by the model).

This could also be done in INAV, which is probably a better option.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.