mirror of
https://github.com/nasa/trick.git
synced 2024-12-19 05:07:54 +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.
54 lines
2.1 KiB
C
54 lines
2.1 KiB
C
/*************************************************************************
|
|
PURPOSE: (SUN sim)
|
|
**************************************************************************/
|
|
|
|
#ifndef SUN_PRED_H
|
|
#define SUN_PRED_H
|
|
#include <wchar.h>
|
|
|
|
typedef struct {
|
|
int year; /* (-- ) Year (-4712 .. INT_MAX) */
|
|
int month; /* (-- ) Month (Jan=1, ... Dec=12) */
|
|
int day; /* (day) Day of the month (1..31) */
|
|
int hour; /* (hr ) Hour of the day (0..23) */
|
|
int min; /* (min) Minute of the hour (0..59) */
|
|
double sec; /* (s ) Second of the minute (0..59) */
|
|
} CALENDAR_DATE;
|
|
|
|
typedef struct {
|
|
double observer_latitude; /* (d) */
|
|
double observer_longitude; /* (d) */
|
|
CALENDAR_DATE local_time; /* (--) */
|
|
double local_sidereal_time; /* (s) */
|
|
double sidereal_time_at_Greenwich; /* (s) */
|
|
int observer_offset_from_UTC; /* (hr) */
|
|
CALENDAR_DATE utc; /* (--) */
|
|
double JD_start; /* (day) Julian date at the beginning of the sim run.*/
|
|
double JD; /* (day) Current Julian date */
|
|
double right_ascension; /* (d) */
|
|
double declination; /* (d) */
|
|
double hour_angle; /* (d) */
|
|
double solar_azimuth; /* (d) */
|
|
double solar_elevation; /* (d) */
|
|
wchar_t* label_UTC; /* (--) wide character pointer */
|
|
wchar_t* label_JD; /* (--) wide character pointer */
|
|
wchar_t* label_Azimuth; /* (--) wide character pointer */
|
|
wchar_t* label_Elevation; /* (--) wide character pointer */
|
|
} SUN_PRED;
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
int sun_pred_default_data( SUN_PRED* S ) ;
|
|
int sun_pred_cyclic( SUN_PRED* S, double current_sim_time ) ;
|
|
int sun_pred_init( SUN_PRED* S ) ;
|
|
int sun_pred_shutdown( void ) ;
|
|
int sun_pred_slow_display( SUN_PRED* S ) ;
|
|
int sun_pred_fast_display( SUN_PRED* S ) ;
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
|
|
#endif
|