mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-22 00:28:30 -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,
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user