waypointbuilder: low altitude AGL for helos

This commit is contained in:
BenBenBeartrax 2021-02-02 20:02:50 +01:00 committed by Dan Albert
parent cee0532b85
commit 643dd65113

View File

@ -173,9 +173,11 @@ class WaypointBuilder:
position.x,
position.y,
meters(
500
80
) if self.is_helo else self.doctrine.ingress_altitude
)
if self.is_helo:
waypoint.alt_type = "RADIO"
waypoint.pretty_name = "Join"
waypoint.description = "Rendezvous with package"
waypoint.name = "JOIN"
@ -187,9 +189,11 @@ class WaypointBuilder:
position.x,
position.y,
meters(
500
80
) if self.is_helo else self.doctrine.ingress_altitude
)
if self.is_helo:
waypoint.alt_type = "RADIO"
waypoint.pretty_name = "Split"
waypoint.description = "Depart from package"
waypoint.name = "SPLIT"
@ -202,9 +206,11 @@ class WaypointBuilder:
position.x,
position.y,
meters(
500
50
) if self.is_helo else self.doctrine.ingress_altitude
)
if self.is_helo:
waypoint.alt_type = "RADIO"
waypoint.pretty_name = "INGRESS on " + objective.name
waypoint.description = "INGRESS on " + objective.name
waypoint.name = "INGRESS"
@ -218,9 +224,11 @@ class WaypointBuilder:
position.x,
position.y,
meters(
500
50
) if self.is_helo else self.doctrine.ingress_altitude
)
if self.is_helo:
waypoint.alt_type = "RADIO"
waypoint.pretty_name = "EGRESS from " + target.name
waypoint.description = "EGRESS from " + target.name
waypoint.name = "EGRESS"
@ -300,7 +308,7 @@ class WaypointBuilder:
FlightWaypointType.CAS,
position.x,
position.y,
meters(500) if self.is_helo else meters(1000)
meters(50) if self.is_helo else meters(1000)
)
waypoint.alt_type = "RADIO"
waypoint.description = "Provide CAS"
@ -431,9 +439,11 @@ class WaypointBuilder:
target.position.x,
target.position.y,
meters(
500
50
) if self.is_helo else self.doctrine.ingress_altitude
)
if self.is_helo:
waypoint.alt_type = "RADIO"
waypoint.name = "TARGET"
waypoint.description = "Escort the package"
waypoint.pretty_name = "Target area"