mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Fix Distance being passed to pydcs methods
This commit is contained in:
parent
0c8d1e1dc4
commit
2d7fc33726
@ -843,7 +843,7 @@ class AircraftConflictGenerator:
|
|||||||
aircraft_type=flight.unit_type,
|
aircraft_type=flight.unit_type,
|
||||||
airport=None,
|
airport=None,
|
||||||
position=pos,
|
position=pos,
|
||||||
altitude=alt,
|
altitude=alt.meters,
|
||||||
speed=speed.kph,
|
speed=speed.kph,
|
||||||
maintask=None,
|
maintask=None,
|
||||||
group_size=flight.count)
|
group_size=flight.count)
|
||||||
@ -870,7 +870,7 @@ class AircraftConflictGenerator:
|
|||||||
def _add_radio_waypoint(self, group: FlyingGroup, position,
|
def _add_radio_waypoint(self, group: FlyingGroup, position,
|
||||||
altitude: Distance,
|
altitude: Distance,
|
||||||
airspeed: int = 600) -> MovingPoint:
|
airspeed: int = 600) -> MovingPoint:
|
||||||
point = group.add_waypoint(position, altitude, airspeed)
|
point = group.add_waypoint(position, altitude.meters, airspeed)
|
||||||
point.alt_type = "RADIO"
|
point.alt_type = "RADIO"
|
||||||
return point
|
return point
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user