trick/trick_sims/SIM_balloon/RUN_test/input.py

26 lines
1022 B
Python

exec(open("./Modified_data/realtime.py").read())
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/build/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 \"mvn package\".')
print('==================================================================================')