diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/commander/commander.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/commander/commander.cpp b/src/modules/commander/commander.cpp index 442f16a58..28118b990 100644 --- a/src/modules/commander/commander.cpp +++ b/src/modules/commander/commander.cpp @@ -1055,7 +1055,7 @@ int commander_thread_main(int argc, char *argv[]) home.lat = (double)global_position.lat / 1e7d; home.lon = (double)global_position.lon / 1e7d; - home.altitude = (float)global_position.alt / 1e3f; + home.altitude = (float)global_position.alt; warnx("home: lat = %.7f, lon = %.7f, alt = %.4f ", home.lat, home.lon, (double)home.altitude); mavlink_log_info(mavlink_fd, "[cmd] home: %.7f, %.7f, %.4f", home.lat, home.lon, (double)home.altitude); |