hd-zero / hdzero-goggle

MIT License
263 stars 76 forks source link

Time for dynamic VTX power controlled by goggles? #360

Open MrMap opened 1 year ago

MrMap commented 1 year ago

This idea has been mentioned on the discord server in May, by someone else but I cannot see any GitHub mention of it.

Now, since BF and INAV (soon) supports MSP VTX would it not be great to implement dynamic VTX power via the ELRS Backpack? Like, when the goggles VRX Link Quality drops below a threshold value the goggles sends a request for power step up via the ELRS Backpack (ESPNOW protocol to ELRS transmitter module), module relays via RC link to the remote unit ELRS RX, goes to onboard Flight Controller (BF or INAV) and on to the HDZ VTX, which responds with a power increase. Same process for any power adjustment of course, up or down.

Some sort of heartbeat check might be a good idea, maybe once a second. If VTX receives no heartbeat from the goggles for a (e.g.) second, the VTX power automatically increases.

The dynamic power feature could be useful already in the depot, before flying. There are multiple reasons to keep the VTX power as low as possible in the depot but as soon you arm and fly you need adequate power immediately. So, at power up the VTX could use very low power, like 0.1 mW, which would still be enough for video link at shortest range (standing beside the VTX). As soon as more power is needed, more power is provided. But no excess power. On a side note, at cold start, my GPS locks notably faster with VTX off, and faster at 25mW than at 200mW. It matters.

Up until now, the dynamic VTX power feature has been only for DJI and WS - but now it could be real also for us HDZ+ELRS users. Wouldn´t that be great?