OpenVTx / OpenVTx

Open source video transmitter firmware for FPV

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

OpenVTX without FC changes channels every boot

dbloemhard opened this issue · comments

Running an OpenVTX EWRF E7082VM on a Silverware whoop, so no smart audio connection. It is on 0.2.0 so it has button press functionality. This works, however each time I plug a lipo in, the channel it starts up on is 1 further than saved.

If i set it to R1, the next time it boots, its on R2. Then the next time it is on R3 and so on. This is particularly painful because the current button press functionality requires me to press the button 47 times to get it back to the original channel (see previous issue logged).

Not sure if the bug is on the saving, or retrieving of the channel settings from EEPROM.

I'd like to report this happens as well if the wire to the flight controller is dodgy. My SmartAudo wire came loose and my vtx would change channel maybe not every boot but maybe half the time. I tried to disable SA on the FC, then literally cut the wire when it was on my assigned channel so I could fly, but next power up it shifted again so this has to be on the OpenVTX side.

EDIT: And of course now that I have it sitting on my bench pulled apart with the SA wire hanging in the air it comes up on R2 every time, but yesterday I flew it on R8, then the next battery it was on R7. I have no idea wtf OpenVTX is doing here. EDIT2: After waiting 10-15 mins and plugging in again, now on R3.

Flashed with latest master and it still does it. If I have the SA wire disconnected from the Fyujon and I wait 15 minutes between plugs, it gets a new channel on power up. If I change the button init code to include the pullup (change 0 to 1) then it stops changing the channel with SA disconnected. I'm not sure if that breaks the button though, but you could try it?

@dbloemhard You may want to try editing the source to see if it resolves your issue. I made a pull request with the change that works for me.

Or flash the bin file (unzip it from the zip) using the web flasher in "local" mode
fyujon-pullup.zip