Plane: add item_reached_msg to GUIDED

This commit is contained in:
Tom Pittenger 2015-12-21 09:48:30 -08:00 committed by Andrew Tridgell
parent dc1846447e
commit d18c25a0f9

View File

@ -145,6 +145,10 @@ void Plane::update_loiter()
if (nav_controller->reached_loiter_target()) {
// we've reached the target, start the timer
loiter.start_time_ms = millis();
if (control_mode == GUIDED) {
// starting a loiter in GUIDED means we just reached the target point
gcs_send_mission_item_reached_message(0);
}
}
}
}