mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-09 01:18:29 -04:00
Copter: current_loc.alt is alt-above-home
This commit is contained in:
parent
7e11ec9a6f
commit
4d566bf462
@ -11,7 +11,7 @@ static void read_inertia()
|
|||||||
static void read_inertial_altitude()
|
static void read_inertial_altitude()
|
||||||
{
|
{
|
||||||
// with inertial nav we can update the altitude and climb rate at 50hz
|
// with inertial nav we can update the altitude and climb rate at 50hz
|
||||||
current_loc.alt = inertial_nav.get_altitude();
|
current_loc.alt = pv_alt_above_home(inertial_nav.get_altitude());
|
||||||
current_loc.flags.relative_alt = true;
|
current_loc.flags.relative_alt = true;
|
||||||
climb_rate = inertial_nav.get_velocity_z();
|
climb_rate = inertial_nav.get_velocity_z();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user