Skip to content
Snippets Groups Projects
Commit 50e024fe authored by Randy Mackay's avatar Randy Mackay Committed by Andrew Tridgell
Browse files

Copter: flag current alt as relative

This is required so common Log_Write_Camera can calculate relative and
abs altitudes provided by either copter or plane

pair programmed with Craig Elder
parent 8c488ebd
No related branches found
No related tags found
No related merge requests found
......@@ -12,5 +12,6 @@ static void read_inertial_altitude()
{
// with inertial nav we can update the altitude and climb rate at 50hz
current_loc.alt = inertial_nav.get_altitude();
current_loc.flags.relative_alt = true;
climb_rate = inertial_nav.get_velocity_z();
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment