mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-08 17:08:28 -04:00
Plane: fixed non-terrain landing
This commit is contained in:
parent
e1a13edf3d
commit
c06067c71b
@ -434,7 +434,7 @@ static float height_above_target(void)
|
||||
}
|
||||
#endif
|
||||
|
||||
return adjusted_altitude_cm()*0.01f - target_alt;
|
||||
return (adjusted_altitude_cm()*0.01f - ahrs.get_home().alt*0.01f) - target_alt;
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user