trick/trick_sims/SIM_ball_L2/Modified_data/realtime.py

19 lines
539 B
Python
Raw Normal View History

2015-02-26 15:02:31 +00:00
trick.frame_log_off()
real_time.rt_sync.enable()
trick_sys.sched.set_software_frame(0.01)
real_time.itimer.disable()
trick_sys.sched.set_enable_freeze(True)
trick_sys.sched.set_freeze_command(True)
simControlPanel = trick.SimControlPanel()
trick.add_external_application(simControlPanel)
#trick_sys.sched.threads[1].rt_cpu_number = 1
#trick_sys.sched.threads[1].rt_lock_memory = Yes
#trick_sys.sched.threads[1].rt_nond_pri = Yes
#trick_sys.sched.threads[1].rt_priority = 1
#trick_sys.sched.threads[1].rt_lock_to_cpu = Yes