2022-06-02 20:46:38 +00:00
|
|
|
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();
|
2022-06-23 20:45:36 +00:00
|
|
|
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('==================================================================================')
|
2022-06-23 20:45:36 +00:00
|
|
|
print('BalloonDisplay needs to be built. Please \"cd\" into ../models/graphics and type \"mvn package\".')
|
2021-12-17 22:03:43 +00:00
|
|
|
print('==================================================================================')
|