AP_NavEKF: stop taking ahrs in constructor

This commit is contained in:
Peter Barker 2019-12-10 20:33:22 +11:00 committed by Andrew Tridgell
parent 14fce28e1b
commit da3d3cc21b
2 changed files with 3 additions and 3 deletions

View File

@ -585,10 +585,10 @@ const AP_Param::GroupInfo NavEKF2::var_info[] = {
AP_GROUPEND
};
NavEKF2::NavEKF2(const AP_AHRS *ahrs) :
_ahrs(ahrs)
NavEKF2::NavEKF2()
{
AP_Param::setup_object_defaults(this, var_info);
_ahrs = &AP::ahrs();
}
/*

View File

@ -37,7 +37,7 @@ class NavEKF2 {
friend class NavEKF2_core;
public:
NavEKF2(const AP_AHRS *ahrs);
NavEKF2();
/* Do not allow copies */
NavEKF2(const NavEKF2 &other) = delete;