AP_NavEKF: stop taking ahrs in constructor
This commit is contained in:
parent
14fce28e1b
commit
da3d3cc21b
@ -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();
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user