Sub: Fix handling of SET_HOME_POSITION

This commit is contained in:
Rustom Jehangir 2016-04-17 22:13:10 -07:00 committed by Andrew Tridgell
parent c1f05b9e25
commit 3c6b6ba8e9
1 changed files with 1 additions and 1 deletions

View File

@ -1981,7 +1981,7 @@ void GCS_MAVLINK::handleMessage(mavlink_message_t* msg)
Location new_home_loc;
new_home_loc.lat = packet.latitude;
new_home_loc.lng = packet.longitude;
new_home_loc.alt = packet.altitude * 100;
new_home_loc.alt = packet.altitude / 10;
if (sub.far_from_EKF_origin(new_home_loc)) {
break;
}