Sealevel altitude


Hi, I found very useful when my OSD was minimOSD, where is a way to get on screen sealevel altitude? As far as I know, this information is provided by GPS, isn´t it?
Has invited:

3dsky - Flying with the best

Favor from:


Look for altitude in gui, you can choose from absolute, relative or both to be displayed, scale type 0 for above sealevel alt or 1 for relative alt.

drashiel

Favor from:


Thanks for your response 3dsky. I configured relative altitude and absolute altitude on be displayed, but both of them shows same value, altitude from ground (absolute must be arround 720 meters but got 0 value on ground).
I checked using Mission Planner and shows correct both of them, altitude from sealevel and ground.
I´m using APM 3.2.

Regards.

drashiel

Favor from:


i try disabbling GPS2 (since I have not on board) but no luck. Another thing I tried is reconfigure SR0 and SR1 parameters, but with minimOSD was working fine.

Somebody has altitude absolute and relative with firmware 10?

Regards.

3dsky - Flying with the best

Favor from:


Works for me, try my config file, maybe you've missed something.

drashiel

Favor from:


I was looking your config and looks like mine, I´ll try with your config to test.

I do some research comparing with minimOSD since was working fine with my setup:
MinimOSD has two versions, one for plane and other for copter (I´m on a copter), why?
Looking on code I found this line to get alt from gps on minim plane version:
https://github.com/marcmerlin/ ... k.ino
osd_alt = mavlink_msg_vfr_hud_get_alt(&msg);
But for copter is slightly diferent:
https://github.com/marcmerlin/ ... k.ino
osd_alt_gps = mavlink_msg_gps_raw_int_get_alt(&msg) / 1000.0f;

Looking inside playuav code found this:
osd_alt = mavlink_msg_vfr_hud_get_alt(&msg);
Wow, looks like plane version, but for copter the way to get alt is not same.

So I suspect gps absolute alt is on different frames depending what APM version runs on the board.

What do you think?

drashiel

Favor from:


Finally add some changes to code and made my custom firmware that works fine, now I get sealevel altitude reported from GPS.

Probably other people running copters have same problem like me, I could send my compiled version if you want. Send me a message and send as soon as I can.

Regards.

3dsky - Flying with the best

Favor from:


ool, I have a second osd for my copter, I didn't install it yet, will do tomorrow and see if it works.

To reply to a question, please Login or registered