mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 14:38:30 -04:00
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
This commit is contained in:
parent
8c488ebd87
commit
50e024fe8f
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user