mirror of
https://github.com/dcs-liberation/dcs_liberation.git
synced 2025-11-10 14:22:26 +00:00
Tweak max-speed-based patrol altitudes
(cherry picked from commit 6621421a6fd4fb7798e589b522f34d8cac2a6faa)
This commit is contained in:
parent
b6895e302e
commit
0b38c3bbda
@ -149,13 +149,13 @@ class AircraftType(UnitType[Type[FlyingType]]):
|
||||
if self.patrol_altitude:
|
||||
return self.patrol_altitude
|
||||
else:
|
||||
# Estimate based on max speed
|
||||
# Aircaft with max speed 200 kph will prefer patrol at 5000 ft
|
||||
# Aircraft with max speed 2700 kph will prefer pratrol at 33 000 ft
|
||||
altitude_for_lowest_speed = feet(5 * 100)
|
||||
# Estimate based on max speed.
|
||||
# Aircaft with max speed 600 kph will prefer patrol at 10 000 ft
|
||||
# Aircraft with max speed 2800 kph will prefer pratrol at 33 000 ft
|
||||
altitude_for_lowest_speed = feet(10 * 1000)
|
||||
altitude_for_highest_speed = feet(33 * 1000)
|
||||
lowest_speed = kph(200)
|
||||
highest_speed = kph(2700)
|
||||
lowest_speed = kph(600)
|
||||
highest_speed = kph(2800)
|
||||
factor = (self.max_speed - lowest_speed).kph / (
|
||||
highest_speed - lowest_speed
|
||||
).kph
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user