mcules / minimosd-extra

Automatically exported from code.google.com/p/minimosd-extra
0 stars 0 forks source link

Display GPS HDOP #103

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
It would great to have an option to display the GPS HDOP value.  The blinking 
GPS indicator is good, but seeing the numeric HDOP gives a much better 
indication of GPS status.

For instance, on my setup an HDOP value of 2.1 will make the indicator blink 
but is sufficient to fly with; whereas an HDOP value greater than 5.0 is not so 
good.

I've been patching the code to make it display the GPS HDOP value below the GPS 
indicator.  Below is the patch; from the 'panGPSats()' function in the 
"OSD_Panels.ino" module:

//    osd.printf("%c%2i", gps_str, osd_satellites_visible);
         //show HDOP value on next line, with trailing space
         // to make sure trailing digit is not "orphaned"
         // on display after value >=10.00 is shown:
    osd.printf("%c%2i|%.2f%c", gps_str, osd_satellites_visible,
                                                    (float(eph)/100), 0x20);

--ET

Original issue reported on code.google.com by ethomas9...@gmail.com on 30 Nov 2014 at 7:34

GoogleCodeExporter commented 9 years ago
Hi,

The first version where we begun to use HOP we did display it. But in reality 
it is quite binary like below is good over not good, so i have decided to not 
to show it so OSD density will be better.

If you want to change the value where it starts to blink, go to OSD_Panels and 
locate the line: if ((eph >= 200) && blinker)
then change 200 to whatever you want.

If you really want to display the value then locate this line;
osd.printf("%c%2i", gps_str, osd_satellites_visible);

And change it to this:
osd.printf("%c%2i%c%1.0f", gps_str, osd_satellites_visible, 0x20, (float(eph) / 
100));

Gábor

Original comment by gabek...@gmail.com on 30 Nov 2014 at 10:39

GoogleCodeExporter commented 9 years ago
To me the ideal thing would be to have a new "GPS HDOP" item, so the user could 
configure and position it; but I know there may not be enough flash space to 
implement this.  If you'd like me to submit a patch for this let me know (if it 
is something you would merge in).

Thanks
--ET

Original comment by ethomas9...@gmail.com on 30 Nov 2014 at 4:47

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Hello,

Having the current hardware, i think this, we will not implement.
That is why i have told you what to change exactly, so you can compile your own 
custom FW.

If you need more help, let me know.

Gábor

Original comment by gabek...@gmail.com on 30 Nov 2014 at 9:48