mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-02 07:21:36 +08:00
commander: fix typo
This commit is contained in:
@@ -2331,7 +2331,7 @@ Commander::run()
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Set home position altitude to EKF origin height if home is not set and the EKF has a global origin.
|
/* Set home position altitude to EKF origin height if home is not set and the EKF has a global origin.
|
||||||
* This allows home atitude to be used in the calculation of height above takeoff location when GPS
|
* This allows home altitude to be used in the calculation of height above takeoff location when GPS
|
||||||
* use has commenced after takeoff. */
|
* use has commenced after takeoff. */
|
||||||
if (!_home.valid_alt && local_position.z_global) {
|
if (!_home.valid_alt && local_position.z_global) {
|
||||||
set_home_position(home_pub, _home, true);
|
set_home_position(home_pub, _home, true);
|
||||||
|
|||||||
Reference in New Issue
Block a user