mirror of
https://github.com/nasa/trick.git
synced 2024-12-19 21:27:54 +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.3 KiB
Plaintext
42 lines
1.3 KiB
Plaintext
/************************TRICK HEADER*************************
|
|
PURPOSE:
|
|
(S_define file for SIM_waterclock_numeric)
|
|
LIBRARY DEPENDENCIES:
|
|
(
|
|
(waterclock/src/waterclock_init.c)
|
|
(waterclock/src/waterclock_numeric.c)
|
|
(waterclock/src/waterclock_shutdown.c)
|
|
)
|
|
*************************************************************/
|
|
#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 "waterclock/include/waterclock_numeric.h"
|
|
|
|
class WaterClockSimObject : public Trick::SimObject {
|
|
|
|
public:
|
|
WATERCLOCK waterclock;
|
|
|
|
WaterClockSimObject() {
|
|
("default_data") waterclock_default_data( &waterclock ) ;
|
|
("initialization") waterclock_init( &waterclock ) ;
|
|
("derivative") waterclock_deriv( &waterclock ) ;
|
|
("integration") trick_ret= waterclock_integ( & waterclock ) ;
|
|
("shutdown") waterclock_shutdown( &waterclock ) ;
|
|
("dynamic_event") waterclock_tick_change( &waterclock ) ;
|
|
("dynamic_event") waterclock_overflow_timer( &waterclock ) ;
|
|
}
|
|
} ;
|
|
|
|
WaterClockSimObject dyn ;
|
|
|
|
IntegLoop dyn_integloop (0.01) dyn ;
|
|
void create_connections() {
|
|
dyn_integloop.getIntegrator(Runge_Kutta_4, 4);
|
|
}
|