File tree 2 files changed +0
-20
lines changed
2 files changed +0
-20
lines changed Original file line number Diff line number Diff line change @@ -312,7 +312,6 @@ class Blimp : public AP_Vehicle
312
312
void set_home_to_current_location_inflight ();
313
313
bool set_home_to_current_location (bool lock) override WARN_IF_UNUSED;
314
314
bool set_home (const Location& loc, bool lock) override WARN_IF_UNUSED;
315
- bool far_from_EKF_origin (const Location& loc);
316
315
317
316
// ekf_check.cpp
318
317
void ekf_check ();
Original file line number Diff line number Diff line change @@ -58,11 +58,6 @@ bool Blimp::set_home(const Location& loc, bool lock)
58
58
return false ;
59
59
}
60
60
61
- // check home is close to EKF origin
62
- if (far_from_EKF_origin (loc)) {
63
- return false ;
64
- }
65
-
66
61
// set ahrs home (used for RTL)
67
62
if (!ahrs.set_home (loc)) {
68
63
return false ;
@@ -76,17 +71,3 @@ bool Blimp::set_home(const Location& loc, bool lock)
76
71
// return success
77
72
return true ;
78
73
}
79
-
80
- // far_from_EKF_origin - checks if a location is too far from the EKF origin
81
- // returns true if too far
82
- bool Blimp::far_from_EKF_origin (const Location& loc)
83
- {
84
- // check distance to EKF origin
85
- Location ekf_origin;
86
- if (ahrs.get_origin (ekf_origin) && ((ekf_origin.get_distance (loc) > EKF_ORIGIN_MAX_DIST_M) || (labs (ekf_origin.alt - loc.alt ) > EKF_ORIGIN_MAX_DIST_M))) {
87
- return true ;
88
- }
89
-
90
- // close enough to origin
91
- return false ;
92
- }
You can’t perform that action at this time.
0 commit comments