mirror of
https://github.com/nasa/trick.git
synced 2024-12-25 15:51:05 +00:00
14a75508a3
Changed all header file once include variables to follow the same naming convention and not start with any underscores. Also deleted old incorrect copyright notices. Also removed $Id: tags from all files. Fixes #14. Fixes #22.
35 lines
936 B
Python
35 lines
936 B
Python
|
|
#execfile("Modified_data/cannon_aero.dr")
|
|
|
|
dyn.baseball.pos[0] = 16.0
|
|
dyn.baseball.pos[1] = 0.1
|
|
dyn.baseball.pos[2] = 2.0
|
|
|
|
dyn.baseball.vel[0] = -30.0
|
|
dyn.baseball.vel[1] = -0.1
|
|
dyn.baseball.vel[2] = 1.0
|
|
|
|
dyn.baseball.theta = trick.attach_units("d",-90.0)
|
|
dyn.baseball.phi = trick.attach_units("d",1.0)
|
|
dyn.baseball.omega0 = trick.attach_units("rev/s",30.0)
|
|
|
|
#sys.exec.sim_com.panel_size = Panel_Size_Lite
|
|
|
|
#trickView = trick.TrickView()
|
|
#trickView.set_auto_open_file("cannon.tv")
|
|
#trick.add_external_application(trickView)
|
|
|
|
#dyn_integloop.integ_sched.integ_ptr = trick.getIntegrator(trick.Runge_Kutta_4, 6, 0.01)
|
|
dyn_integloop.getIntegrator(trick.Runge_Kutta_4, 6)
|
|
trick.exec_set_terminate_time(5.2)
|
|
|
|
#trick.real_time_enable()
|
|
|
|
#simControlPanel = trick.SimControlPanel()
|
|
#trick.add_external_application(simControlPanel)
|
|
|
|
#trick.exec_set_enable_freeze(True)
|
|
#trick.exec_set_freeze_command(True)
|
|
|
|
#execfile("Modified_data/realtime.py")
|