2019-10-23 16:58:19 +00:00
|
|
|
/***********************TRICK HEADER*************************
|
2015-02-26 15:02:31 +00:00
|
|
|
PURPOSE:
|
2016-10-27 19:37:14 +00:00
|
|
|
(Cannon Numeric)
|
2015-02-26 15:02:31 +00:00
|
|
|
LIBRARY DEPENDENCIES:
|
|
|
|
(
|
|
|
|
(cannon/gravity/src/cannon_init.c)
|
2016-11-17 22:04:07 +00:00
|
|
|
(cannon/gravity/src/cannon_numeric.c)
|
2015-02-26 15:02:31 +00:00
|
|
|
)
|
|
|
|
*************************************************************/
|
|
|
|
|
|
|
|
#include "sim_objects/default_trick_sys.sm"
|
2021-08-18 18:15:10 +00:00
|
|
|
//#include "sim_objects/CivetServer.sm"
|
2019-04-24 23:29:50 +00:00
|
|
|
##include "cannon/gravity/include/cannon_numeric.h"
|
2019-10-23 16:58:19 +00:00
|
|
|
|
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;
|
2018-08-01 00:01:47 +00:00
|
|
|
|
|
|
|
void create_connections() {
|
|
|
|
dyn_integloop.getIntegrator(Runge_Kutta_4, 5);
|
|
|
|
}
|