trick/trick_sims/Cannon/SIM_cannon_numeric/S_define

34 lines
978 B
Plaintext
Raw Normal View History

/***********************TRICK HEADER*************************
2015-02-26 15:02:31 +00:00
PURPOSE:
(Cannon Numeric)
2015-02-26 15:02:31 +00:00
LIBRARY DEPENDENCIES:
(
(cannon/gravity/src/cannon_init.c)
(cannon/gravity/src/cannon_numeric.c)
2015-02-26 15:02:31 +00:00
)
*************************************************************/
#include "sim_objects/default_trick_sys.sm"
//#include "sim_objects/CivetServer.sm"
##include "cannon/gravity/include/cannon_numeric.h"
2015-02-26 15:02:31 +00:00
class CannonSimObject : public Trick::SimObject {
public:
CANNON cannon ;
CannonSimObject() {
("default_data") cannon_default_data( &cannon ) ;
("initialization") cannon_init( &cannon ) ;
2016-10-21 00:12:31 +00:00
("derivative") cannon_deriv( &cannon ) ;
2015-02-26 15:02:31 +00:00
("integration") trick_ret = cannon_integ( &cannon ) ;
("dynamic_event") cannon_impact( &cannon) ;
}
} ;
CannonSimObject dyn ;
IntegLoop dyn_integloop (0.01) dyn;
void create_connections() {
dyn_integloop.getIntegrator(Runge_Kutta_4, 5);
}