mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-11 18:38:28 -04:00
Plane: don't overwrite home on a armed watchdog reset
This commit is contained in:
parent
bd6cd094c9
commit
645f758a15
@ -139,6 +139,10 @@ void Plane::set_home_persistently(const Location &loc)
|
|||||||
|
|
||||||
void Plane::set_home(const Location &loc)
|
void Plane::set_home(const Location &loc)
|
||||||
{
|
{
|
||||||
|
if (hal.util->was_watchdog_armed()) {
|
||||||
|
// don't overwrite home
|
||||||
|
return;
|
||||||
|
}
|
||||||
ahrs.set_home(loc);
|
ahrs.set_home(loc);
|
||||||
ahrs.Log_Write_Home_And_Origin();
|
ahrs.Log_Write_Home_And_Origin();
|
||||||
gcs().send_home();
|
gcs().send_home();
|
||||||
|
Loading…
Reference in New Issue
Block a user