mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-01 21:48:28 -04:00
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:
parent
0095f6168e
commit
0d9b9433da
@ -1419,7 +1419,7 @@ void GCS_MAVLINK::send_home(const Location &home) const
|
|||||||
chan,
|
chan,
|
||||||
home.lat,
|
home.lat,
|
||||||
home.lng,
|
home.lng,
|
||||||
home.alt / 100,
|
home.alt * 10,
|
||||||
0.0f, 0.0f, 0.0f,
|
0.0f, 0.0f, 0.0f,
|
||||||
q,
|
q,
|
||||||
0.0f, 0.0f, 0.0f);
|
0.0f, 0.0f, 0.0f);
|
||||||
@ -1437,7 +1437,7 @@ void GCS_MAVLINK::send_home_all(const Location &home)
|
|||||||
chan,
|
chan,
|
||||||
home.lat,
|
home.lat,
|
||||||
home.lng,
|
home.lng,
|
||||||
home.alt / 100,
|
home.alt * 10,
|
||||||
0.0f, 0.0f, 0.0f,
|
0.0f, 0.0f, 0.0f,
|
||||||
q,
|
q,
|
||||||
0.0f, 0.0f, 0.0f);
|
0.0f, 0.0f, 0.0f);
|
||||||
|
Loading…
Reference in New Issue
Block a user