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
|
||||
}
|
||||
} else {
|
||||
if (AP::ahrs().set_home(cmd.content.location)) {
|
||||
gcs().send_ekf_origin();
|
||||
if (!AP::ahrs().set_home(cmd.content.location)) {
|
||||
// silently ignore failure
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue