mirror of
https://github.com/nasa/trick.git
synced 2025-01-13 08:19:53 +00:00
95c6659733
* Incorporate Webserver into Trick, so one only has to include HttpServer.sm * Tweaks in default index.html file * Rename HTTPServer.sm to WebServer.sm * Rename http_server to WebServer * Add --retry to curl invocations in HttpServer makefile. * Fix #include in VariableServerVariable.hh * Include cleanup and curl tweaks in the hopes of making Jenkins happy. * Doh! problem in makefile masked by preinstalled mongoose in usr/local/lib * DIE Make Bug DIE * Fix include in WebServer.sm * WebServer.sm constructor name * Don't SWIG mongoose.h * Compile with -std=c++11 * Attempt to fix race condition in makefile * makefie tweek * Fix trick library name problem for Centos and Redhat
35 lines
991 B
Plaintext
35 lines
991 B
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"
|
|
#include "sim_objects/WebServer.sm"
|
|
##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);
|
|
}
|