mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-31 20:21:35 +08:00
EKF1: Fix stack smashing resulting from uninitialized publication
This commit is contained in:
@@ -221,6 +221,7 @@ AttitudePositionEstimatorEKF::AttitudePositionEstimatorEKF() :
|
|||||||
_newAdsData(false),
|
_newAdsData(false),
|
||||||
_newDataMag(false),
|
_newDataMag(false),
|
||||||
_newRangeData(false),
|
_newRangeData(false),
|
||||||
|
_mavlink_log_pub(nullptr),
|
||||||
|
|
||||||
_mag_offset_x(this, "MAGB_X"),
|
_mag_offset_x(this, "MAGB_X"),
|
||||||
_mag_offset_y(this, "MAGB_Y"),
|
_mag_offset_y(this, "MAGB_Y"),
|
||||||
|
|||||||
Reference in New Issue
Block a user