Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
sryu1 committed Apr 6, 2023
1 parent 6484040 commit cd3a777
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions jsbgym/visualiser.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,6 @@ class FlightGearVisualiser(object):
LOADED_MESSAGE = "Starting hard-coded terrain presampling"
FLIGHTGEAR_TIME_FACTOR = 1 # sim speed relative to realtime, higher is faster
TIME = "morning"
# EXTRA_AIRCRAFT_LOCATION = ("C:/Users/" + os.getlogin() + "/FlightGear/Downloads\Aircraft\org.flightgear.fgaddon.stable_2020\Aircraft")

def __init__(
self, sim: Simulation, print_props: Tuple[prp.Property], block_until_loaded=True
Expand Down Expand Up @@ -339,7 +338,6 @@ def _create_cmd_line_args(aircraft_id: str):
disable_ai_arg = "--disable-ai-traffic"
disable_live_weather_arg = "--disable-real-weather-fetch"
time_of_day_arg = "--timeofday=" + FlightGearVisualiser.TIME
# extra_aircraft = "--fg-aircraft=" + FlightGearVisualiser.EXTRA_AIRCRAFT_LOCATION
return (
flightgear_cmd,
aircraft_arg,
Expand All @@ -348,13 +346,11 @@ def _create_cmd_line_args(aircraft_id: str):
disable_ai_arg,
disable_live_weather_arg,
time_of_day_arg,
# extra_aircraft,
)

def _block_until_flightgear_loaded(self):
while True:
msg_out = self.flightgear_process.stdout.readline().decode()
print(msg_out)
if self.LOADED_MESSAGE in msg_out:
print("FlightGear loading complete")
break
Expand Down

0 comments on commit cd3a777

Please sign in to comment.