SmartAudio: VTX_MAX_POWER and RCx_OPTION = 94

How does RCx translates into a power level ?
In other words: what is the scaling of RCx ?
I didn’t get that from the documentation.

How does VTX_MAX_POWER translates into a power level ?
Every vtx has different power levels.

It’s a dodgy heuristic based on switch position and the value of MAX_POWER:

1 Like

thank you for the reply.

If I got it right RCx is translated into 5 positions (ranging from RC_MIN to RC_MAX).
Than the position is translated into a power using VTX_MAX_POWER and heuristic.

I am not a SA expert but afaik the power is set by a power level.
I am using an Eachine VTX03S with 5 power levels.
0 1 2 3 4
0 25 50 100 200
If I set VTX_MAX_POWER to 200, I can switch to power level 2 (50mW) max.
If I set VTX_MAX_POWER to 1000, I can switch to power level 4 (200mW) max
but ArduPilot says “vtx power changed to 800mW”.

I assume something like betaflight vtx tables is needed to translate power levels into power.

Should be up to 6 positions. Generally you should be able to set VTX_MAX_POWER to your actual max power and access your max power. But the mapping of level to power is fixed (SA 2.1 gives power in db so much easier).

It’s all a hack and fairly high up on my list of things to do when 4.1 is out the door. Tables is one way but takes a bunch of configuration and flash. It should also be possible to learn the values which is my preferred approach. SA 2.1 also publishes the supported table so I need to support that as well.

I see.
At least it works for now with the exception of the misleading power information.
Looking forward for the improvements.