Merge branch 'ekf_params' of github.com:PX4/Firmware into ekf_params

This commit is contained in:
Lorenz Meier
2014-04-28 22:39:54 +02:00

View File

@@ -1004,8 +1004,8 @@ FixedwingEstimator::task_main()
_ekf->InitialiseFilter(_ekf->velNED, math::radians(lat), math::radians(lon) - M_PI, gps_alt, declination);
// Initialize projection
_local_pos.ref_lat = _gps.lat;
_local_pos.ref_lon = _gps.alt;
_local_pos.ref_lat = lat;
_local_pos.ref_lon = lon;
_local_pos.ref_alt = _baro_ref + _baro_gps_offset;
_local_pos.ref_timestamp = _gps.timestamp_position;