mirror of
https://github.com/nasa/trick.git
synced 2025-01-10 23:12:44 +00:00
33 lines
859 B
Plaintext
33 lines
859 B
Plaintext
|
/************************TRICK HEADER*************************
|
||
|
PURPOSE:
|
||
|
( Single body rigid dynamics simulation )
|
||
|
LIBRARY DEPENDENCIES:
|
||
|
((src/body.cpp)
|
||
|
(src/body_shutdown.cpp)
|
||
|
)
|
||
|
*************************************************************/
|
||
|
#define TRICK_NO_MONTE_CARLO
|
||
|
#define TRICK_NO_MASTERSLAVE
|
||
|
#define TRICK_NO_INSTRUMENTATION
|
||
|
#define TRICK_NO_REALTIMEINJECTOR
|
||
|
#define TRICK_NO_ZEROCONF
|
||
|
|
||
|
#include "sim_objects/default_trick_sys.sm"
|
||
|
##include "include/body.hh"
|
||
|
class BodySimObject : public Trick::SimObject {
|
||
|
public:
|
||
|
BODY body;
|
||
|
|
||
|
BodySimObject() {
|
||
|
("default_data") body.default_data() ;
|
||
|
("initialization") body.init() ;
|
||
|
("derivative") body.derivative() ;
|
||
|
("integration") trick_ret = body.integ() ;
|
||
|
("shutdown") body.body_shutdown();
|
||
|
}
|
||
|
};
|
||
|
|
||
|
BodySimObject dyn;
|
||
|
IntegLoop dyn_integloop(0.01) dyn;
|
||
|
|