From d558dbd73d9486c2449699d020e0a16c89da7657 Mon Sep 17 00:00:00 2001 From: "John M. Penn" Date: Fri, 4 Sep 2015 15:39:39 -0500 Subject: [PATCH] Add cannon_aero.dr to SIM_cannon_aero --- .../Modified_data/cannon_aero.dr | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 trick_sims/SIM_cannon_aero/Modified_data/cannon_aero.dr diff --git a/trick_sims/SIM_cannon_aero/Modified_data/cannon_aero.dr b/trick_sims/SIM_cannon_aero/Modified_data/cannon_aero.dr new file mode 100644 index 00000000..dd73dade --- /dev/null +++ b/trick_sims/SIM_cannon_aero/Modified_data/cannon_aero.dr @@ -0,0 +1,18 @@ +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("cannon_aero")) +drg[DR_GROUP_ID].set_freq(trick.DR_Always) +drg[DR_GROUP_ID].set_cycle(0.01) +drg[DR_GROUP_ID].set_single_prec_only(False) +drg[DR_GROUP_ID].add_variable("dyn.baseball.pos[0]") +drg[DR_GROUP_ID].add_variable("dyn.baseball.pos[1]") +drg[DR_GROUP_ID].add_variable("dyn.baseball.pos[2]") +trick.add_data_record_group(drg[DR_GROUP_ID], trick.DR_Buffer) +drg[DR_GROUP_ID].enable()