mirror of
https://github.com/nasa/trick.git
synced 2024-12-24 07:16:41 +00:00
ee2f824550
* Disable unneeded SimObjects from default_trick_sys.sm in Trick example sims. * Take out unit test disable. Add some S_defines I forgot.
42 lines
1.1 KiB
Plaintext
42 lines
1.1 KiB
Plaintext
/************************TRICK HEADER*************************
|
|
PURPOSE:
|
|
(This S_define works with the RUN_numeric input file)
|
|
LIBRARY DEPENDENCIES:
|
|
(
|
|
(msd/src/msd.cpp)
|
|
(msd/src/msd_default_data.cpp)
|
|
(msd/src/msd_deriv.cpp)
|
|
(msd/src/msd_init.cpp)
|
|
(msd/src/msd_integ.cpp)
|
|
(msd/src/msd_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 "sim_objects/WebServer.sm"
|
|
##include "msd/include/msd.hh"
|
|
|
|
|
|
class MSDSimObject : public Trick::SimObject {
|
|
|
|
public:
|
|
MSD msd ;
|
|
|
|
MSDSimObject() {
|
|
("default_data") MSD::default_data( msd ) ;
|
|
("initialization") msd.init() ;
|
|
("derivative") msd.state_deriv() ;
|
|
("integration") trick_ret= msd.state_integ() ;
|
|
("shutdown") msd.shutdown() ;
|
|
}
|
|
} ;
|
|
|
|
MSDSimObject dyn ;
|
|
IntegLoop dyn_integloop (0.01) dyn ;
|
|
|