Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

show decimals like 0.6m for the altitude. #75

Open
GoogleCodeExporter opened this issue Jul 25, 2015 · 3 comments
Open

show decimals like 0.6m for the altitude. #75

GoogleCodeExporter opened this issue Jul 25, 2015 · 3 comments

Comments

@GoogleCodeExporter
Copy link

This is enhancement suggestion:
Is it possible to show decimals like 0.6m for altitude?
For all flying multicopters alt above the ground is critical. Most of flight 
controllers are using MS5611 pressure sensor with 0.1m resolution. It will be 
great to see decimals of altitude if it is, lets say less then 10m above the 
ground level (home altitude). This range and decimal option can be configurable.



Original issue reported on code.google.com by i...@koronker.ru on 22 Oct 2013 at 12:54

@GoogleCodeExporter
Copy link
Author

[deleted comment]

1 similar comment
@GoogleCodeExporter
Copy link
Author

[deleted comment]

@GoogleCodeExporter
Copy link
Author

To enable decimals in alt to be shown <10m the following changes in code need 
to be done: in OSD_Panels.ino line 429 
    osd.printf("%c%5.0f%c",0xE7, (double)((osd_alt - osd_home_alt) * converth), high);
should be changed to 
//    if Altitude closer to home/ground then 10 meters show decimal in home 
altitude
    if (abs(osd_alt - osd_home_alt) < 10 )  { osd.printf("%c%5.1f%c",0xE7, (double)((osd_alt - osd_home_alt) * converth), high);}
        else  { osd.printf("%c%5.0f%c",0xE7, (double)((osd_alt - osd_home_alt) * converth), high);}

Please include it into next version.

Original comment by i...@koronker.ru on 24 Oct 2013 at 2:46

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant