pos estimator inav: use map_projection_reference to set local pos reference lat lon

This commit is contained in:
Thomas Gubler
2014-04-25 13:57:06 +02:00
parent a467bd61c1
commit 08bc777208
@@ -626,8 +626,8 @@ int position_estimator_inav_thread_main(int argc, char *argv[])
z_est[0] = 0.0f;
y_est[2] = accel_NED[1];
local_pos.ref_lat = lat;
local_pos.ref_lon = lon;
map_projection_reference(&local_pos.ref_lat, &local_pos.ref_lon);
local_pos.ref_alt = alt;
local_pos.ref_timestamp = t;
}