diff options
author | Thomas Gubler <thomasgubler@gmail.com> | 2014-04-29 15:39:26 +0200 |
---|---|---|
committer | Thomas Gubler <thomasgubler@gmail.com> | 2014-04-29 15:39:26 +0200 |
commit | a7289a32664e3118bf553d23cfd91ed5c86caa84 (patch) | |
tree | 5129d27c76582e7a1bb3072e877ddc21f158a940 /src/modules | |
parent | 4f84cdc8b871b6c8da7f05a58e96f97b65f290c9 (diff) | |
download | px4-firmware-a7289a32664e3118bf553d23cfd91ed5c86caa84.tar.gz px4-firmware-a7289a32664e3118bf553d23cfd91ed5c86caa84.tar.bz2 px4-firmware-a7289a32664e3118bf553d23cfd91ed5c86caa84.zip |
mavlink interface: update mapprojection usage
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/mavlink/mavlink_receiver.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/mavlink/mavlink_receiver.cpp b/src/modules/mavlink/mavlink_receiver.cpp index b2c5e0079..db8f00e8f 100644 --- a/src/modules/mavlink/mavlink_receiver.cpp +++ b/src/modules/mavlink/mavlink_receiver.cpp @@ -766,7 +766,7 @@ MavlinkReceiver::handle_message_hil_state_quaternion(mavlink_message_t *msg) if (!_hil_local_proj_inited) { _hil_local_proj_inited = true; _hil_local_alt0 = hil_state.alt / 1000.0f; - hil_local_pos.ref_timestamp = map_projection_timestamp(); + hil_local_pos.ref_timestamp = map_projection_global_timestamp(); hil_local_pos.ref_lat = lat; hil_local_pos.ref_lon = lon; hil_local_pos.ref_alt = _hil_local_alt0; @@ -774,7 +774,7 @@ MavlinkReceiver::handle_message_hil_state_quaternion(mavlink_message_t *msg) float x; float y; - map_projection_project(lat, lon, &x, &y); + map_projection_global_project(lat, lon, &x, &y); hil_local_pos.timestamp = timestamp; hil_local_pos.xy_valid = true; hil_local_pos.z_valid = true; |