mirror of
https://github.com/nasa/trick.git
synced 2024-12-24 07:16:41 +00:00
7bc6ab74a8
* added SIM_singlerigidbody * Removed a few sections in the README file * Removed the sims directory * Added shutdown job and made minor changes to body.cpp --------- Co-authored-by: Wallace <bnwalla1@scooby.trick.gov>
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;
|
|
|