mirror of
https://github.com/nasa/trick.git
synced 2024-12-22 06:27:49 +00:00
14a75508a3
Changed all header file once include variables to follow the same naming convention and not start with any underscores. Also deleted old incorrect copyright notices. Also removed $Id: tags from all files. Fixes #14. Fixes #22.
31 lines
663 B
Plaintext
31 lines
663 B
Plaintext
#include "sim_objects/default_trick_sys.sm"
|
|
|
|
class testSimObject : public Trick::SimObject {
|
|
|
|
public:
|
|
int print_time (int thread) {
|
|
message_publish(1, "thread %d: time = %8.2f\n", thread, exec_get_sim_time()) ;
|
|
return 0 ;
|
|
} ;
|
|
|
|
testSimObject() {
|
|
(10.0, "scheduled") print_time(0) ;
|
|
C1 (5.0, "scheduled") print_time(1) ;
|
|
C2 (1.0, "scheduled") print_time(2) ;
|
|
}
|
|
|
|
} ;
|
|
|
|
// Instantiations
|
|
testSimObject test ;
|
|
|
|
// Connect objects
|
|
void create_connections() {
|
|
|
|
// Set the default termination time
|
|
exec_set_terminate_time(30.0) ;
|
|
exec_set_freeze_frame(1.0) ;
|
|
|
|
}
|
|
|