mirror of https://github.com/ArduPilot/ardupilot
Plane: remove redundant send_ekf_origin
This commit is contained in:
parent
bf9b8f41bf
commit
0858847294
|
@ -905,8 +905,8 @@ void Plane::do_set_home(const AP_Mission::Mission_Command& cmd)
|
||||||
// silently ignore error
|
// silently ignore error
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (AP::ahrs().set_home(cmd.content.location)) {
|
if (!AP::ahrs().set_home(cmd.content.location)) {
|
||||||
gcs().send_ekf_origin();
|
// silently ignore failure
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue