mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-14 22:33:34 +08:00
position estimator mc: do not initialize map projection because this is now handled globally
This commit is contained in:
@@ -322,11 +322,6 @@ int position_estimator_mc_thread_main(int argc, char *argv[])
|
||||
lon_current = ((double)(gps.lon)) * 1e-7d;
|
||||
alt_current = gps.alt * 1e-3f;
|
||||
gps_origin_altitude = alt_current;
|
||||
/* initialize coordinates */
|
||||
map_projection_init(lat_current, lon_current);
|
||||
/* publish global position messages only after first GPS message */
|
||||
printf("[pos_est_mc] initialized projection with: lat: %.10f, lon:%.10f\n", lat_current, lon_current);
|
||||
|
||||
} else {
|
||||
mavlink_log_info(mavlink_fd, "[pos_est_mc] I'm NOT using GPS - I use VICON");
|
||||
/* onboard calculated position estimations */
|
||||
|
||||
Reference in New Issue
Block a user