ArduCopter: fix handling of SET_HOME_POSITION

Location.altitude is stored in cm.
This commit is contained in:
Lucas De Marchi 2016-04-15 16:28:29 -03:00 committed by Andrew Tridgell
parent 9398531811
commit a310d3735e

View File

@ -1976,7 +1976,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 (copter.far_from_EKF_origin(new_home_loc)) {
break;
}