trick/trick_sims/SIM_sun/S_define
Alex Lin 14a75508a3 Cleaning up once include variables and copyright cleanup.
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.
2015-03-23 16:03:14 -05:00

58 lines
1.7 KiB
Plaintext

/************************TRICK HEADER*************************
PURPOSE:
(This comment lists out the other object files that are not included from c++ headers)
LIBRARY DEPENDENCIES:
(
(helios/src/JD.c)
(helios/src/lh_coords.c)
(helios/src/sidereal.c)
(helios/src/sun_pos.c)
(helios/src/sun_pred_cyclic.c)
(helios/src/sun_pred_default_data.c)
(helios/src/sun_pred_fast_display.c)
(helios/src/sun_pred_init.c)
(helios/src/sun_pred_shutdown.c)
(helios/src/sun_pred_slow_display.c)
)
*************************************************************/
#include "sim_objects/default_trick_sys.sm"
##include "helios/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() {
}