mirror of
https://github.com/nasa/trick.git
synced 2024-12-18 20:57:55 +00:00
Remove SIM_aero_curve and SIM_aero_fast directories
This commit is contained in:
parent
fecf03aa94
commit
2683c17e0e
@ -1,18 +0,0 @@
|
||||
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.DRAscii("cannon"))
|
||||
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()
|
@ -1,11 +0,0 @@
|
||||
|
||||
trick.frame_log_on()
|
||||
trick.real_time_enable()
|
||||
trick.exec_set_software_frame(0.1)
|
||||
trick.itimer_enable()
|
||||
|
||||
trick.exec_set_enable_freeze(True)
|
||||
trick.exec_set_freeze_command(True)
|
||||
|
||||
simControlPanel = trick.SimControlPanel()
|
||||
trick.add_external_application(simControlPanel)
|
@ -1,34 +0,0 @@
|
||||
|
||||
#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")
|
@ -1,15 +0,0 @@
|
||||
|
||||
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)
|
||||
|
||||
dyn_integloop.getIntegrator(trick.Runge_Kutta_4, 6)
|
||||
trick.exec_set_terminate_time(5.2)
|
@ -1,53 +0,0 @@
|
||||
/************************TRICK HEADER*************************
|
||||
PURPOSE:
|
||||
(This S_define should be used with the RUN_curveball and RUN_fastball input files)
|
||||
LIBRARY DEPENDENCIES:
|
||||
(
|
||||
(cannon/aero/src/cannon_init_aero.c)
|
||||
(cannon/aero/src/cannon_force_gravity.c)
|
||||
(cannon/aero/src/cannon_force_drag.c)
|
||||
(cannon/aero/src/cannon_force_lift.c)
|
||||
(cannon/aero/src/cannon_force_cross.c)
|
||||
(cannon/aero/src/cannon_collect_forces.c)
|
||||
(cannon/aero/src/cannon_integ_aero.c)
|
||||
(cannon/aero/src/cannon_impact_aero.c)
|
||||
(cannon/aero/src/cannon_aero_default_data.c)
|
||||
)
|
||||
*************************************************************/
|
||||
|
||||
#include "sim_objects/default_trick_sys.sm"
|
||||
|
||||
##include "cannon/aero/include/cannon_aero.h"
|
||||
##include "cannon/aero/include/cannon_aero_proto.h"
|
||||
|
||||
class CannonSimObject : public Trick::SimObject {
|
||||
|
||||
public:
|
||||
CANNON_AERO baseball;
|
||||
|
||||
CannonSimObject() {
|
||||
|
||||
("default_data") cannon_aero_default_data( &baseball ) ;
|
||||
|
||||
("initialization") cannon_init_aero( &baseball ) ;
|
||||
|
||||
("derivative") cannon_force_gravity( &baseball ) ;
|
||||
("derivative") cannon_force_drag( &baseball ) ;
|
||||
("derivative") cannon_force_lift( &baseball ) ;
|
||||
("derivative") cannon_force_cross( &baseball ) ;
|
||||
("derivative") cannon_collect_forces( &baseball ) ;
|
||||
("integration") trick_ret = cannon_integ_aero( &baseball ) ;
|
||||
|
||||
("dynamic_event") cannon_impact_aero( &baseball ) ;
|
||||
}
|
||||
} ;
|
||||
|
||||
CannonSimObject dyn ;
|
||||
|
||||
IntegLoop dyn_integloop (0.01) dyn ;
|
||||
|
||||
collect dyn.baseball.force_collect = {
|
||||
dyn.baseball.force_gravity[0],
|
||||
dyn.baseball.force_drag[0],
|
||||
dyn.baseball.force_magnus[0],
|
||||
dyn.baseball.force_cross[0]} ;
|
@ -1,4 +0,0 @@
|
||||
|
||||
TRICK_CFLAGS += -I${TRICK_HOME}/trick_models
|
||||
TRICK_CXXFLAGS += -I${TRICK_HOME}/trick_models
|
||||
|
Binary file not shown.
@ -1,18 +0,0 @@
|
||||
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.DRAscii("cannon"))
|
||||
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()
|
@ -1,11 +0,0 @@
|
||||
|
||||
trick.frame_log_on()
|
||||
trick.real_time_enable()
|
||||
trick.exec_set_software_frame(0.1)
|
||||
trick.itimer_enable()
|
||||
|
||||
trick.exec_set_enable_freeze(True)
|
||||
trick.exec_set_freeze_command(True)
|
||||
|
||||
simControlPanel = trick.SimControlPanel()
|
||||
trick.add_external_application(simControlPanel)
|
@ -1,22 +0,0 @@
|
||||
|
||||
execfile("Modified_data/realtime.py")
|
||||
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)
|
||||
|
||||
trickView = trick.TrickView()
|
||||
trickView.set_auto_open_file("cannon.tv")
|
||||
trick.add_external_application(trickView)
|
||||
|
||||
dyn_integloop.getIntegrator(trick.Runge_Kutta_4, 6)
|
||||
trick.exec_set_terminate_time(5.2)
|
@ -1,15 +0,0 @@
|
||||
|
||||
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)
|
||||
|
||||
dyn_integloop.getIntegrator(trick.Runge_Kutta_4, 6)
|
||||
trick.exec_set_terminate_time(5.2)
|
@ -1,53 +0,0 @@
|
||||
/************************TRICK HEADER*************************
|
||||
PURPOSE:
|
||||
(This S_define should be used with the RUN_curveball and RUN_fastball input files)
|
||||
LIBRARY DEPENDENCIES:
|
||||
(
|
||||
(cannon/aero/src/cannon_init_aero.c)
|
||||
(cannon/aero/src/cannon_force_gravity.c)
|
||||
(cannon/aero/src/cannon_force_drag.c)
|
||||
(cannon/aero/src/cannon_force_lift.c)
|
||||
(cannon/aero/src/cannon_force_cross.c)
|
||||
(cannon/aero/src/cannon_collect_forces.c)
|
||||
(cannon/aero/src/cannon_integ_aero.c)
|
||||
(cannon/aero/src/cannon_impact_aero.c)
|
||||
(cannon/aero/src/cannon_aero_default_data.c)
|
||||
)
|
||||
*************************************************************/
|
||||
|
||||
#include "sim_objects/default_trick_sys.sm"
|
||||
|
||||
##include "cannon/aero/include/cannon_aero.h"
|
||||
##include "cannon/aero/include/cannon_aero_proto.h"
|
||||
|
||||
class CannonSimObject : public Trick::SimObject {
|
||||
|
||||
public:
|
||||
CANNON_AERO baseball;
|
||||
|
||||
CannonSimObject() {
|
||||
|
||||
("default_data") cannon_aero_default_data( &baseball ) ;
|
||||
|
||||
("initialization") cannon_init_aero( &baseball ) ;
|
||||
|
||||
("derivative") cannon_force_gravity( &baseball ) ;
|
||||
("derivative") cannon_force_drag( &baseball ) ;
|
||||
("derivative") cannon_force_lift( &baseball ) ;
|
||||
("derivative") cannon_force_cross( &baseball ) ;
|
||||
("derivative") cannon_collect_forces( &baseball ) ;
|
||||
("integration") trick_ret = cannon_integ_aero( &baseball ) ;
|
||||
|
||||
("dynamic_event") cannon_impact_aero( &baseball ) ;
|
||||
}
|
||||
} ;
|
||||
|
||||
CannonSimObject dyn ;
|
||||
|
||||
IntegLoop dyn_integloop (0.01) dyn ;
|
||||
|
||||
collect dyn.baseball.force_collect = {
|
||||
dyn.baseball.force_gravity[0],
|
||||
dyn.baseball.force_drag[0],
|
||||
dyn.baseball.force_magnus[0],
|
||||
dyn.baseball.force_cross[0]} ;
|
@ -1,4 +0,0 @@
|
||||
|
||||
TRICK_CFLAGS += -I${TRICK_HOME}/trick_models
|
||||
TRICK_CXXFLAGS += -I${TRICK_HOME}/trick_models
|
||||
|
Binary file not shown.
@ -3,8 +3,6 @@ export TRICK_HOST_CPU := $(shell $(TRICK_HOME)/bin/trick-gte TRICK_HOST_CPU)
|
||||
|
||||
# List out sims we want to compile
|
||||
COMPILE_DIRS = SIM_Ball++_L1 \
|
||||
SIM_aero_curve \
|
||||
SIM_aero_fast \
|
||||
SIM_amoeba \
|
||||
SIM_ball_L1 \
|
||||
SIM_ball_L2 \
|
||||
@ -47,8 +45,6 @@ COMPILE_DIRS = SIM_Ball++_L1 \
|
||||
|
||||
# List out sims we want to run unit tests
|
||||
TEST_DIRS = SIM_Ball++_L1 \
|
||||
SIM_aero_curve \
|
||||
SIM_aero_fast \
|
||||
SIM_amoeba \
|
||||
SIM_ball_L1 \
|
||||
SIM_ball_L2 \
|
||||
|
Loading…
Reference in New Issue
Block a user