trick/trick_sims/SIM_tcltk_java/RUN_test/input.py
2015-02-26 09:02:31 -06:00

22 lines
604 B
Python

# $Id: input.py 1012 2010-08-26 21:00:09Z dpanter $
execfile("Modified_data/cannon_aero.dr")
execfile("Modified_data/realtime_jet.py")
dyn.baseball.pos[0] = 0.0
dyn.baseball.pos[1] = 0.0
dyn.baseball.pos[2] = 0.0
dyn.baseball.vel[0] = 43.30
dyn.baseball.vel[1] = 0.0
dyn.baseball.vel[2] = 25.0
dyn.baseball.theta = trick.sim_services.attach_units("d" , -90.0)
dyn.baseball.phi = trick.sim_services.attach_units("d" , 1.0)
dyn.baseball.omega0 = trick.sim_services.attach_units("rev/s" , 30.0)
dyn_integloop.getIntegrator(trick.Runge_Kutta_4, 6)
trick.sim_services.exec_set_terminate_time(10.0)