2015-02-26 15:02:31 +00:00
|
|
|
import os
|
|
|
|
|
2019-11-14 19:35:57 +00:00
|
|
|
exec(open("Modified_data/realtime.py").read())
|
|
|
|
#exec(open("Modified_data/Satellite.dr").read())
|
2015-02-26 15:02:31 +00:00
|
|
|
|
|
|
|
dyn_integloop.getIntegrator(trick.Runge_Kutta_4, 18)
|
|
|
|
|
2016-02-22 23:48:06 +00:00
|
|
|
scene_app_path = 'models/Satellite/graphics/Scene'
|
2015-02-26 15:02:31 +00:00
|
|
|
if os.path.exists(scene_app_path):
|
|
|
|
dyn.sat_graph_comm.syscmd = scene_app_path + ' &'
|
|
|
|
else:
|
|
|
|
dyn.sat_graph_comm.syscmd = '';
|
|
|
|
sys.stderr.write(scene_app_path + ' not found. It probably needs to be complied.\n')
|
|
|
|
sys.exit(1)
|
|
|
|
|
|
|
|
# Fire Thrusters at the given times.
|
|
|
|
read = 10
|
|
|
|
trick.add_read(read,"""dyn.satellite.thruster_T1.on = True""")
|
|
|
|
|
|
|
|
read = 20
|
|
|
|
trick.add_read(read,"""dyn.satellite.thruster_T1.on = False""")
|
|
|
|
trick.add_read(read,"""dyn.satellite.thruster_T3.on = True""")
|
|
|
|
|
|
|
|
read = 30
|
|
|
|
trick.add_read(read,"""dyn.satellite.thruster_T3.on = False""")
|
|
|
|
|
|
|
|
read = 50
|
|
|
|
trick.add_read(read,"""dyn.satellite.thruster_T3.on = True""")
|
|
|
|
|
|
|
|
read = 60
|
|
|
|
trick.add_read(read,"""dyn.satellite.thruster_T3.on = False""")
|
|
|
|
trick.add_read(read,"""dyn.satellite.thruster_T1.on = True""")
|
|
|
|
|
|
|
|
read = 70
|
|
|
|
trick.add_read(read,"""dyn.satellite.thruster_T1.on = False""")
|
|
|
|
|
|
|
|
trick.stop(5400)
|