Revert "Functions with enumerated default arguments cause bad python code to be generated"

This reverts commit 612591ce96.
This commit is contained in:
Alex Lin 2016-02-18 10:59:26 -06:00
parent 612591ce96
commit a9e4dfabcc
6 changed files with 0 additions and 6 deletions

View File

@ -7,7 +7,6 @@ for param in [ 'position' , 'velocity' , 'acceleration' , 'external_force' ] :
drg0.add_variable(var)
#drg0.set_cycle(0.01)
drg0.freq = trick.DR_Always
drg0.thisown = 0
trick_data_record.drd.add_group(drg0, trick.DR_No_Buffer)
trick_message.mpublisher.sim_name = "ball_sim"

View File

@ -45,7 +45,6 @@ def add_dr_group():
drg[DR_GROUP_ID].add_variable("sun_predictor.sun.utc.sec")
drg[DR_GROUP_ID].add_variable("sun_predictor.sun.utc.year")
drg[DR_GROUP_ID].thisown = 0
trick_data_record.drd.add_group( drg[DR_GROUP_ID], trick.DR_Buffer )
add_dr_group()

View File

@ -51,7 +51,6 @@ def add_dr_group():
drg[DR_GROUP_ID].add_variable("dpx.test.s3[1].s2[1][1].s1[1][1].ll[1]")
drg[DR_GROUP_ID].add_variable("dpx.test.s3[1].s2[1][1].s1[1][1].ll[2]")
drg[DR_GROUP_ID].thisown = 0
trick_data_record.drd.add_group( drg[DR_GROUP_ID], trick.DR_Buffer )
add_dr_group()

View File

@ -95,7 +95,6 @@ def add_dr_group():
drg[DR_GROUP_ID].add_variable("dpx.test.s3[0].s2[2][1].s1[1][2].d[0]")
drg[DR_GROUP_ID].add_variable("dpx.test.s3[1].s2[2][1].s1[1][2].d[0]")
drg[DR_GROUP_ID].thisown = 0
trick_data_record.drd.add_group( drg[DR_GROUP_ID], trick.DR_Buffer )
add_dr_group()

View File

@ -95,7 +95,6 @@ def add_dr_group():
drg[DR_GROUP_ID].add_variable("dpx.test.s3[0].s2[2][1].s1[1][2].d[1]")
drg[DR_GROUP_ID].add_variable("dpx.test.s3[1].s2[2][1].s1[1][2].d[1]")
drg[DR_GROUP_ID].thisown = 0
trick_data_record.drd.add_group( drg[DR_GROUP_ID], trick.DR_Buffer )
add_dr_group()

View File

@ -95,7 +95,6 @@ def add_dr_group():
drg[DR_GROUP_ID].add_variable("dpx.test.s3[0].s2[2][1].s1[1][2].d[2]" )
drg[DR_GROUP_ID].add_variable("dpx.test.s3[1].s2[2][1].s1[1][2].d[2]" )
drg[DR_GROUP_ID].thisown = 0
trick_data_record.drd.add_group( drg[DR_GROUP_ID], trick.DR_Buffer )
add_dr_group()