rodizio1 / EZ-WifiBroadcast

Affordable Digital HD Video Transmission made easy!
GNU General Public License v2.0
816 stars 200 forks source link

OSD infos home distance/position (and possibly others) reset on OSD restart (when connecting secondary display for example) #195

Open rodizio1 opened 5 years ago

rodizio1 commented 5 years ago

As reported by khomyakk and narpat007 on RCGroups.

https://www.youtube.com/watch?v=H_NzqWS_ga0

https://www.youtube.com/watch?v=0NFpikks5YA

rodizio1 commented 5 years ago

Issue exists because the OSD gets closed (and then restarted) when status messages are being displayed. This leads to the OSD losing the home position information and thus wrong distance to home.

Looked into the code. For LTM, it shouldn't be a big issue fixing that, as the home position seems to be sent during the whole flight, i.e. we don't need to keep that information.

For Mavlink, this information doesn't seem to be sent, so we have to find a way to either keep the OSD running all the time or to temporarily save that information somewhere (on the ramdisk for example).

Cleanest way is probably to keep the OSD running all the time. That would require some logic to display status messages inside the OSD. And of course some means to transfer those messages to the OSD, maybe via sharedmem, or by reading a pipe or something.