yaapu / HorusMappingWidget

Offline GPS Mapping Widget for Horus and T16 radios
GNU General Public License v3.0
91 stars 25 forks source link

[suggestion] dummy GPS fix for testing #6

Closed dentex closed 4 years ago

dentex commented 4 years ago

Hello, I don't know if this is somehow already implemented, but for the moment, if you want to see how the tiles and the sensors panels look like, you have to have a valid GPS fix; a real one, with the drone outside, plugged LiPO and all. I was thinking about something like a simple text file, with fictional GPS coordinates in it; when the script finds it, it may show that fix instead of waiting for the real one. Or maybe just add an option where the user can type in the coordinates for a testing purpose GPS fix, plus an enable/disable "testing" switch.

Thanks.

yaapu commented 4 years ago

Hi, you can do that in companion, install the widget on the simulator, enable sensors simulation and enter the gps coordinates there.

dentex commented 4 years ago

Great! Thanks. I didn't know.

dentex commented 4 years ago

Hey Yaapu, I was trying to run the script from the radio simulator. It seems all is set up (I have sounds, etc), but the telemetry page with the map widget won't show up. If I run it manually from the SYS menu, I have this error (but I don't know if it's related, because the script from TOOLS runs fine): immagine immagine

I forgot to say that I setup a proper GPS fix in the UI, so it shows up in the sim radio; it's not grayed out: immagine

yaapu commented 4 years ago

Hi, download latest version again, you hav the wrong mapsconfig.lua.

Never seen that error before, is it on linux? Try to use these files and let companion compile it for you

dentex commented 4 years ago

Yes Linux.

Thanks, that worked:

immagine

No sensors here, but I'll try to figure it out. :)

dentex commented 4 years ago

immagine

Got it!

Thanks again.

(...you have to close/re-open the sim every time you edit the script)