AP_NavEKF3: stop taking ahrs in constructor

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

View File

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

View File

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