mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-18 06:38:29 -04:00
Tracker: make setting of home boolean in preparation for sanity checks
This commit is contained in:
parent
8937ef3190
commit
f4097d254c
@ -28,8 +28,8 @@ protected:
|
|||||||
return 0; // what if we have been picked up and carried somewhere?
|
return 0; // what if we have been picked up and carried somewhere?
|
||||||
}
|
}
|
||||||
|
|
||||||
bool set_home_to_current_location(bool lock) override { return false; }
|
bool set_home_to_current_location(bool lock) override WARN_IF_UNUSED { return false; }
|
||||||
bool set_home(const Location& loc, bool lock) override { return false; }
|
bool set_home(const Location& loc, bool lock) override WARN_IF_UNUSED { return false; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
|
@ -156,7 +156,9 @@ void Tracker::set_home(struct Location temp)
|
|||||||
// check EKF origin has been set
|
// check EKF origin has been set
|
||||||
Location ekf_origin;
|
Location ekf_origin;
|
||||||
if (ahrs.get_origin(ekf_origin)) {
|
if (ahrs.get_origin(ekf_origin)) {
|
||||||
ahrs.set_home(temp);
|
if (!ahrs.set_home(temp)) {
|
||||||
|
// ignore error silently
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user