mirror of
https://github.com/nasa/trick.git
synced 2025-01-21 20:08:08 +00:00
90fd0ff9f8
Moved SIM_test_ip and a couple of other sims that depend on the same model set to a new test directory. I'm doing a couple of sims at a time. refs #191
30 lines
588 B
Plaintext
30 lines
588 B
Plaintext
#include "sim_objects/default_trick_sys.sm"
|
|
|
|
##include "test_ip/include/TemplateTest.hh"
|
|
|
|
class templateSimObject : public Trick::SimObject {
|
|
|
|
public:
|
|
TemplateTest tobj ;
|
|
|
|
templateSimObject() {
|
|
(1.0, "scheduled") trick_ret = print() ;
|
|
}
|
|
|
|
int print() { std::cout << "In print()" << std::endl ; return 0 ; } ;
|
|
|
|
} ;
|
|
|
|
// Instantiations
|
|
templateSimObject tso ;
|
|
|
|
// Connect objects
|
|
void create_connections() {
|
|
|
|
// Set the default termination time
|
|
trick_sys.sched.set_terminate_time(1.0) ;
|
|
trick_sys.sched.set_freeze_frame(0.10) ;
|
|
|
|
}
|
|
|