trick/trick_sims/SIM_balloon/RUN_test/input.py
2022-01-12 13:41:04 -06:00

26 lines
1003 B
Python

execfile("Modified_data/realtime.py")
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
dyn.balloon.wind_speed = 0.0
# ==========================================
# Start the Satellite Graphics Client
# ==========================================
varServerPort = trick.var_server_get_port();
BalloonDisplay_path = "models/graphics/dist/BalloonDisplay.jar"
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 \"make\".')
print('==================================================================================')