@@ -739,7 +739,7 @@ def __init__(self):
739739class RecoveryTanker (Task ):
740740 Id = "RecoveryTanker"
741741
742- def __init__ (self , groupId : int , speed : float , altitude : float , lastWaypoint : Optional [int ]):
742+ def __init__ (self , groupId = None , speed = 600 , altitude = 4000 , lastWaypoint : Optional [int ] = None ):
743743 super (RecoveryTanker , self ).__init__ (RecoveryTanker .Id )
744744
745745 speedEdited = True
@@ -753,7 +753,6 @@ def __init__(self, groupId: int, speed: float, altitude: float, lastWaypoint: Op
753753
754754 self .params = {
755755 "speedEdited" : speedEdited ,
756- "groupId" : groupId ,
757756 "altitudeEdited" : altitudeEdited ,
758757 "altitude" : altitude ,
759758 "targetTypes" : {
@@ -764,6 +763,8 @@ def __init__(self, groupId: int, speed: float, altitude: float, lastWaypoint: Op
764763 "lastWptIndexFlagChangedManually" : lastWptIndexChangedManually ,
765764 "lastWptIndex" : lastWaypoint ,
766765 }
766+ if groupId is not None :
767+ self .params ["groupId" ] = groupId
767768
768769
769770class OrbitAction (Task ):
@@ -1129,6 +1130,7 @@ def __init__(self, alt_above: int = DEFAULT_ALT,
11291130 AWACSTaskAction .Id : AWACSTaskAction ,
11301131 RefuelingTaskAction .Id : RefuelingTaskAction ,
11311132 Tanker .Id : Tanker ,
1133+ RecoveryTanker .Id : RecoveryTanker ,
11321134 OrbitAction .Id : OrbitAction ,
11331135 Follow .Id : Follow ,
11341136 Aerobatics .Id : Aerobatics ,
0 commit comments