mirror of
https://github.com/nasa/trick.git
synced 2025-01-04 12:24:12 +00:00
aa36c31231
* added new mass-spring-damper sim and graphics client * changed math model image for README.md * updated math model image for README.md
33 lines
872 B
Plaintext
33 lines
872 B
Plaintext
/************************TRICK HEADER*************************
|
|
PURPOSE:
|
|
(This S_define works with the RUN_numeric input file)
|
|
LIBRARY DEPENDENCIES:
|
|
(
|
|
(msd/src/msd_init.cpp)
|
|
(msd/src/msd_numeric.cpp)
|
|
(msd/src/msd_shutdown.cpp)
|
|
(msd/src/msd.cpp)
|
|
(msd/src/msd_deriv.cpp)
|
|
(msd/src/msd_integ.cpp)
|
|
)
|
|
*************************************************************/
|
|
|
|
#include "sim_objects/default_trick_sys.sm"
|
|
##include "msd/include/msd_numeric.hh"
|
|
|
|
|
|
class MSDSimObject : public Trick::SimObject {
|
|
|
|
public:
|
|
MSD msd;
|
|
|
|
MSDSimObject() {
|
|
("default_data") msd_default_data( msd ) ;
|
|
("initialization") msd_init( msd ) ;
|
|
("derivative") msd.state_deriv();
|
|
("integration") trick_ret= msd.state_integ();
|
|
}
|
|
} ;
|
|
|
|
MSDSimObject dyn ;
|
|
IntegLoop dyn_integloop (0.01) dyn ; |