Fix recreate as CAP for ground targets.

This commit is contained in:
Dan Albert 2020-11-02 02:33:09 -08:00
parent 9c07fe5963
commit ac05c7cfaa

View File

@ -149,7 +149,7 @@ class QFlightWaypointTab(QFrame):
if task == FlightType.CAP: if task == FlightType.CAP:
if isinstance(self.package.target, FrontLine): if isinstance(self.package.target, FrontLine):
task = FlightType.TARCAP task = FlightType.TARCAP
elif isinstance(self.package.target, ControlPoint): else:
task = FlightType.BARCAP task = FlightType.BARCAP
self.flight.flight_type = task self.flight.flight_type = task
self.planner.populate_flight_plan(self.flight) self.planner.populate_flight_plan(self.flight)