mirror of
https://github.com/nasa/trick.git
synced 2024-12-25 07:41:08 +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.
61 lines
1.8 KiB
Plaintext
61 lines
1.8 KiB
Plaintext
/************************TRICK HEADER*************************
|
|
PURPOSE:
|
|
(This comment lists out the other object files that are not included from c++ headers)
|
|
LIBRARY DEPENDENCIES:
|
|
(
|
|
(Sun/src/JD.c)
|
|
(Sun/src/lh_coords.c)
|
|
(Sun/src/sidereal.c)
|
|
(Sun/src/sun_pos.c)
|
|
(Sun/src/sun_pred_cyclic.c)
|
|
(Sun/src/sun_pred_default_data.c)
|
|
(Sun/src/sun_pred_fast_display.c)
|
|
(Sun/src/sun_pred_init.c)
|
|
(Sun/src/sun_pred_shutdown.c)
|
|
(Sun/src/sun_pred_slow_display.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 "Sun/include/sun_pred.h"
|
|
##include "sim_services/MemoryManager/include/wcs_ext.h"
|
|
|
|
//=============================================================================
|
|
// SIM_OBJECT: sun_predictor
|
|
// This sim object models the position of the sun.
|
|
//=============================================================================
|
|
class heliosSimObject : public Trick::SimObject {
|
|
|
|
public:
|
|
SUN_PRED sun ;
|
|
|
|
heliosSimObject() {
|
|
// DATA STRUCTURE DECLARATIONS
|
|
("default_data") sun_pred_default_data( &sun ) ;
|
|
|
|
// INITIALIZATION JOBS
|
|
("initialization") sun_pred_init( &sun ) ;
|
|
|
|
(1.00, "scheduled") trick_ret = sun_pred_cyclic( &sun, exec_get_sim_time()) ;
|
|
(1.00, "scheduled") trick_ret = sun_pred_fast_display( &sun ) ;
|
|
(10.00, "scheduled") trick_ret = sun_pred_slow_display( &sun ) ;
|
|
|
|
("shutdown") sun_pred_shutdown() ;
|
|
}
|
|
|
|
} ;
|
|
|
|
// Instantiations
|
|
heliosSimObject sun_predictor ;
|
|
|
|
|
|
// Connect objects
|
|
void create_connections() {
|
|
|
|
}
|