GCS_MAVLink: fix home position unit

As per documentation the home position is in mm. Since location stores
it in cm, convert to mm before sending.
This commit is contained in:
Lucas De Marchi 2016-04-15 16:32:25 -03:00 committed by Andrew Tridgell
parent 0095f6168e
commit 0d9b9433da

View File

@ -1419,7 +1419,7 @@ void GCS_MAVLINK::send_home(const Location &home) const
chan,
home.lat,
home.lng,
home.alt / 100,
home.alt * 10,
0.0f, 0.0f, 0.0f,
q,
0.0f, 0.0f, 0.0f);
@ -1437,7 +1437,7 @@ void GCS_MAVLINK::send_home_all(const Location &home)
chan,
home.lat,
home.lng,
home.alt / 100,
home.alt * 10,
0.0f, 0.0f, 0.0f,
q,
0.0f, 0.0f, 0.0f);