trick/trick_sims/SIM_balloon/RUN_test/input.py

26 lines
1022 B
Python
Raw Normal View History

exec(open("./Modified_data/realtime.py").read())
2021-12-17 22:03:43 +00:00
dyn.balloon.pos[0] = 0
#dyn.balloon.pos[1] = 136.89
dyn.balloon.vel[0] = 0.0
dyn.balloon.vel[1] = 0.0
dyn.balloon.envelope_air_temperature = 92.0
2022-01-12 19:41:04 +00:00
dyn.balloon.wind_speed = 0.0
2021-12-17 22:03:43 +00:00
# ==========================================
# Start the Satellite Graphics Client
# ==========================================
varServerPort = trick.var_server_get_port();
BalloonDisplay_path = "models/graphics/build/BalloonDisplay.jar"
2021-12-17 22:03:43 +00:00
if (os.path.isfile(BalloonDisplay_path)) :
BalloonDisplay_cmd = "java -jar " \
+ BalloonDisplay_path \
+ " " + str(varServerPort) + " &" ;
print(BalloonDisplay_cmd)
os.system( BalloonDisplay_cmd);
else :
print('==================================================================================')
print('BalloonDisplay needs to be built. Please \"cd\" into ../models/graphics and type \"mvn package\".')
2021-12-17 22:03:43 +00:00
print('==================================================================================')