mirror of
https://github.com/nasa/trick.git
synced 2024-12-19 13:17:55 +00:00
38 lines
1.0 KiB
Plaintext
38 lines
1.0 KiB
Plaintext
/************************TRICK HEADER*************************
|
|
PURPOSE:
|
|
(Cannon Numeric)
|
|
LIBRARY DEPENDENCIES:
|
|
(
|
|
(cannon/gravity/src/cannon_init.c)
|
|
(cannon/gravity/src/cannon_numeric.c)
|
|
)
|
|
*************************************************************/
|
|
|
|
#include "sim_objects/default_trick_sys.sm"
|
|
|
|
#ifdef TRICK_HTTP
|
|
#include "mongoose_httpd/mongoose_httpd.sm"
|
|
#endif
|
|
|
|
##include "cannon/gravity/include/cannon_numeric.h"
|
|
class CannonSimObject : public Trick::SimObject {
|
|
|
|
public:
|
|
CANNON cannon ;
|
|
int foo;
|
|
CannonSimObject() {
|
|
("default_data") cannon_default_data( &cannon ) ;
|
|
("initialization") cannon_init( &cannon ) ;
|
|
("derivative") cannon_deriv( &cannon ) ;
|
|
("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);
|
|
}
|