mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-01 02:55:07 +08:00
Hotfix: Fix EKF estimator and remove debug output which should not have been on master anyway
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
*
|
*
|
||||||
* Copyright (c) 2013, 2014 PX4 Development Team. All rights reserved.
|
* Copyright (c) 2013-2015 PX4 Development Team. All rights reserved.
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
* modification, are permitted provided that the following conditions
|
* modification, are permitted provided that the following conditions
|
||||||
@@ -1518,12 +1518,6 @@ FixedwingEstimator::task_main()
|
|||||||
|
|
||||||
_global_pos.timestamp = _local_pos.timestamp;
|
_global_pos.timestamp = _local_pos.timestamp;
|
||||||
|
|
||||||
// FIXME: usurp terrain alt field for baro_gps_offset
|
|
||||||
_global_pos.terrain_alt = _baro_gps_offset;
|
|
||||||
_global_pos.terrain_alt_valid = true;
|
|
||||||
_global_pos.eph = _baro_alt_filt;
|
|
||||||
_global_pos.epv = _gps_alt_filt;
|
|
||||||
|
|
||||||
/* lazily publish the global position only once available */
|
/* lazily publish the global position only once available */
|
||||||
if (_global_pos_pub > 0) {
|
if (_global_pos_pub > 0) {
|
||||||
/* publish the global position */
|
/* publish the global position */
|
||||||
|
|||||||
Reference in New Issue
Block a user