trick/trick_sims/SIM_sat2d/Modified_data/satellite.dr

22 lines
710 B
Python
Raw Permalink Normal View History

2017-02-28 21:49:35 +00:00
global DR_GROUP_ID
global drg
try:
if DR_GROUP_ID >= 0:
DR_GROUP_ID += 1
except NameError:
DR_GROUP_ID = 0
drg = []
drg.append(trick.DRBinary("satellite"))
drg[DR_GROUP_ID].set_freq(trick.DR_Always)
drg[DR_GROUP_ID].set_cycle(1.0)
drg[DR_GROUP_ID].set_single_prec_only(False)
drg[DR_GROUP_ID].add_variable("dyn.satellite.pos[0]")
drg[DR_GROUP_ID].add_variable("dyn.satellite.pos[1]")
drg[DR_GROUP_ID].add_variable("dyn.satellite.vel[0]")
drg[DR_GROUP_ID].add_variable("dyn.satellite.vel[1]")
drg[DR_GROUP_ID].add_variable("dyn.satellite.acc[0]")
drg[DR_GROUP_ID].add_variable("dyn.satellite.acc[1]")
trick.add_data_record_group(drg[DR_GROUP_ID], trick.DR_Buffer)
drg[DR_GROUP_ID].enable()