![]() |
Earth Observation Mission CFI Software Pointing Software User Manual |
![]() |
00001 //-------------------------------------------------------- 00002 // Earth Observation Mission CFI Software. Version 4.17 00003 //-------------------------------------------------------- 00004 00005 //-------------------------------------------------------------------- 00006 // CVS Info: $Id: PointingData.h,v 1.32 2014-02-26 13:00:48 paat Exp $ 00007 //-------------------------------------------------------------------- 00008 00013 00014 #ifndef __EECFI_POINTINGDATA__ 00015 #define __EECFI_POINTINGDATA__ 00016 00017 //--INCLUDE----------------------------------------------------------- 00018 #include "DataHandlingData.h" 00019 #include "LibData.h" 00020 #include "StarTracker.h" 00021 #include "AttRec.h" 00022 #include "Coord.h" 00023 #include "StateVector.h" 00024 #include "PointingDllExport.h" 00025 00026 //--NAMESPACES-------------------------------------------------------- 00027 using namespace std; 00028 00029 namespace EECFI 00030 { 00031 //------------------------------------------------------ 00032 // CONSTANT DATA 00033 //------------------------------------------------------ 00034 00035 //------------------------------------------------------ 00036 // DATA ENUMERATION 00037 // Enumeration values are defined in an equivalent way to the C library 00038 // except for the prefix that has been changed from XX_ to XXCFI_ 00039 //------------------------------------------------------ 00040 00042 typedef enum 00043 { 00044 XPCFI_AOCS_GPM = XDCFI_AOCS_GPM, 00045 XPCFI_AOCS_LNP = XDCFI_AOCS_LNP, 00046 XPCFI_AOCS_YSM = XDCFI_AOCS_YSM, 00047 XPCFI_AOCS_ZDOPPLER = XDCFI_AOCS_ZDOPPLER 00048 00049 } SatNominalAttAocsModeEnum; // AN-469 00050 00052 typedef enum 00053 { 00054 XPCFI_MODEL_GENERIC = XDCFI_MODEL_GENERIC, 00055 XPCFI_MODEL_ENVISAT = XDCFI_MODEL_ENVISAT, 00056 XPCFI_MODEL_CRYOSAT = XDCFI_MODEL_CRYOSAT, 00057 XPCFI_MODEL_ADM = XDCFI_MODEL_ADM, 00058 XPCFI_MODEL_SENTINEL1 = XDCFI_MODEL_SENTINEL1, 00059 XPCFI_MODEL_SENTINEL2 = XDCFI_MODEL_SENTINEL2, 00060 XPCFI_MODEL_GEO = XDCFI_MODEL_GEO, 00061 XPCFI_MODEL_METOPSG = XDCFI_MODEL_METOPSG /* AN-666 */ 00062 } SatNominalAttModelEnum; // AN-469 00063 00065 typedef enum 00066 { 00067 XPCFI_ANGLE_TYPE_TRUE_LAT_TOD = XDCFI_ANGLE_TYPE_TRUE_LAT_TOD, 00068 XPCFI_ANGLE_TYPE_TRUE_LAT_EF = XDCFI_ANGLE_TYPE_TRUE_LAT_EF /* AN-508 */ 00069 } XPAngleTypeEnum; // AN-469 00070 00072 typedef enum 00073 { 00074 XPCFI_SEL_FILE = 0, 00075 XPCFI_SEL_TIME, 00076 XPCFI_SEL_ORBIT, 00077 XPCFI_SEL_DEFAULT 00078 } PointingInitModeEnum; 00079 00081 typedef enum 00082 { 00083 XPCFI_SAT_NOMINAL_ATT_INIT_MODE = 0, 00084 XPCFI_SAT_NOMINAL_ATT_INIT_MODEL_MODE, 00085 XPCFI_SAT_NOMINAL_ATT_INIT_HARMONIC_MODE, 00086 XPCFI_SAT_NOMINAL_ATT_INIT_FILE_MODE 00087 00088 } SatNominalAttModeEnum; 00089 00091 typedef enum 00092 { 00093 XPCFI_SAT_ATT_ANGLE_INIT_MODE = 0, 00094 XPCFI_SAT_ATT_MATRIX_INIT_MODE, 00095 XPCFI_SAT_ATT_INIT_HARMONIC_MODE, 00096 XPCFI_SAT_ATT_INIT_FILE_MODE 00097 00098 } SatAttModeEnum; 00099 00101 typedef enum 00102 { 00103 XPCFI_INSTR_ATT_ANGLE_INIT_MODE = 0, 00104 XPCFI_INSTR_ATT_MATRIX_INIT_MODE, 00105 XPCFI_INSTR_ATT_INIT_HARMONIC_MODE, 00106 XPCFI_INSTR_ATT_INIT_FILE_MODE 00107 00108 } InstrAttModeEnum; 00109 00111 typedef enum 00112 { 00113 XPCFI_ATTITUDE_INIT_NO_DATA_MODE = 0, 00114 XPCFI_ATTITUDE_COMPUTE_MODE, 00115 XPCFI_ATTITUDE_USER_SET_MODE 00116 00117 } AttitudeModeEnum; 00118 00120 typedef enum 00121 { 00122 XPCFI_ATTITUDE_GENERIC_FILE_MODEL = 0, 00123 XPCFI_ATTITUDE_STAR_TRACKER_FILE_MODEL, 00124 XPCFI_ATTITUDE_QUATERNION_NO_FILE_MODEL 00125 00126 } AttitudeFileModelEnum; 00127 00129 typedef enum 00130 { 00131 XPCFI_BM2000 = 1, 00132 XPCFI_HM2000 , 00133 XPCFI_GM2000, 00134 XPCFI_MOD, 00135 XPCFI_TOD, 00136 XPCFI_PEF, 00137 XPCFI_EF, 00138 XPCFI_BM1950, 00139 XPCFI_GALACTIC 00140 } CsRlEnum; 00141 00143 typedef enum 00144 { 00145 XPCFI_NONE_ATTITUDE = -1, /* AN-468 */ 00146 XPCFI_SAT_ORBITAL_REF = 0, 00147 XPCFI_SAT_NOMINAL_ATT = 1, 00148 XPCFI_SAT_ATT = 2, 00149 XPCFI_INSTR_ATT = 3 00150 } AttFrEnum; 00151 00153 typedef enum 00154 { 00155 XPCFI_FRAME_FLAG_EXT = 0, 00156 XPCFI_FRAME_FLAG_SAT 00157 } FrameFlagEnum; 00158 00160 typedef enum 00161 { 00162 XPCFI_NO_INTER = 0, 00163 XPCFI_INTER_1ST, 00164 XPCFI_INTER_2ND 00165 } InterModeEnum; 00166 00168 typedef enum 00169 { 00170 XPCFI_SOURCE_STAR, 00171 XPCFI_SOURCE_SUN, 00172 XPCFI_SOURCE_MOON, 00173 XPCFI_SOURCE_GENERIC 00174 } SourceTypeEnum; 00175 00177 typedef enum 00178 { 00179 XPCFI_USER_TARGET_TYPE = 0, 00180 XPCFI_LOS_TARGET_TYPE, 00181 XPCFI_DEM_TARGET_TYPE 00182 } TargetTypeEnum; 00183 00185 typedef enum 00186 { 00187 XPCFI_X_AXIS = 0, 00188 XPCFI_NEG_X_AXIS, 00189 XPCFI_Y_AXIS, 00190 XPCFI_NEG_Y_AXIS, 00191 XPCFI_Z_AXIS, 00192 XPCFI_NEG_Z_AXIS 00193 } PointingAxisEnum; 00194 00196 typedef enum 00197 { 00198 XPCFI_SUN_VEC = 0, 00199 XPCFI_MOON_VEC, 00200 XPCFI_EARTH_VEC, 00201 XPCFI_NADIR_VEC, 00202 XPCFI_INERTIAL_VEL_VEC, 00203 XPCFI_EF_VEL_VEC, 00204 XPCFI_INERTIAL_TARGET_VEC, 00205 XPCFI_EF_TARGET_VEC, 00206 XPCFI_SC_EF_VEL_VEC, 00207 XPCFI_ORBIT_POLE, 00208 XPCFI_INERTIAL_POS_VEC_CORRECTED, 00209 XPCFI_INERTIAL_VEL_VEC_ROTATED, 00210 XPCFI_EF_NORTH, // AN-353 00211 XPCFI_EF_SOUTH // AN-353 00212 } AxisTargetEnum; 00213 00215 // Changed for AN-407 (Enumeration TargetPointingRayEnum was removed) 00216 typedef enum 00217 { 00218 XPCFI_NO_REF_INIT = XDCFI_NO_REF, 00219 XPCFI_STD_INIT = XDCFI_STD_REF, 00220 XPCFI_USER_INIT = XDCFI_USER_REF, 00221 XPCFI_PRED_INIT = XDCFI_PRED_REF, 00222 XPCFI_STD_INIT_N = XDCFI_STD_REF_N, 00223 XPCFI_USER_INIT_N = XDCFI_USER_REF_N, 00224 XPCFI_PRED_INIT_N = XDCFI_PRED_REF_N, 00225 XPCFI_US76_INIT = XDCFI_US76_REF, 00226 XPCFI_TROPIC_INIT = XDCFI_TROPIC_REF, 00227 XPCFI_MID_SUM_INIT = XDCFI_MID_SUM_REF, 00228 XPCFI_MID_WIN_INIT = XDCFI_MID_WIN_REF, 00229 XPCFI_SUBAR_SUM_INIT = XDCFI_SUBAR_SUM_REF, 00230 XPCFI_SUBAR_WIN_INIT = XDCFI_SUBAR_WIN_REF, 00231 XPCFI_LUT_INIT = XDCFI_LUT_REF, 00232 XPCFI_US76_INIT_N = XDCFI_US76_REF_N, 00233 XPCFI_TROPIC_INIT_N = XDCFI_TROPIC_REF_N, 00234 XPCFI_MID_SUM_INIT_N = XDCFI_MID_SUM_REF_N, 00235 XPCFI_MID_WIN_INIT_N = XDCFI_MID_WIN_REF_N, 00236 XPCFI_SUBAR_SUM_INIT_N = XDCFI_SUBAR_SUM_REF_N, 00237 XPCFI_SUBAR_WIN_INIT_N = XDCFI_SUBAR_WIN_REF_N, 00238 XPCFI_LUT_INIT_N = XDCFI_LUT_REF_N 00239 } AtmosModeEnum; 00240 00242 typedef enum 00243 { 00244 XPCFI_TARG_EXTRA_AUX_DIST_NAD_TARG_GT = 1, 00245 XPCFI_TARG_EXTRA_AUX_RAD_CUR = 2, 00246 XPCFI_TARG_EXTRA_AUX_DIST_NAD_TARG_GT_D = 4, 00247 XPCFI_TARG_EXTRA_AUX_DIST_NAD_TARG_GT_2D = 8, 00248 XPCFI_TARG_EXTRA_AUX_RAD_CUR_D = 16, 00249 XPCFI_TARG_EXTRA_AUX_RAD_CUR_2D = 32, 00250 XPCFI_TARG_EXTRA_AUX_TARGET_NADIR_VEL = 64, 00251 XPCFI_TARG_EXTRA_AUX_MLST = 128, 00252 XPCFI_TARG_EXTRA_AUX_TLST = 256, 00253 XPCFI_TARG_EXTRA_AUX_DIST_NAD_TARG_SAT_NAD = 512, 00254 XPCFI_TARG_EXTRA_AUX_DIST_NAD_TARG_SAT_NAD_D = 1024, 00255 XPCFI_TARG_EXTRA_AUX_DIST_NAD_TARG_SAT_NAD_2D = 2048, 00256 XPCFI_TARG_EXTRA_AUX_LOOK_DIR = 4096, 00257 XPCFI_TARG_EXTRA_AUX_DIST_SSP_MIN_DIST_GT = 8192, 00258 XPCFI_TARG_EXTRA_AUX_DIST_SSP_MIN_DIST_GT_D= 16384, 00259 XPCFI_TARG_EXTRA_AUX_DIST_SSP_MIN_DIST_GT_2D = 32768, 00260 XPCFI_TARG_EXTRA_AUX_ALL = XPCFI_TARG_EXTRA_AUX_DIST_NAD_TARG_GT + XPCFI_TARG_EXTRA_AUX_RAD_CUR + \ 00261 XPCFI_TARG_EXTRA_AUX_DIST_NAD_TARG_GT_D + XPCFI_TARG_EXTRA_AUX_DIST_NAD_TARG_GT_2D +\ 00262 XPCFI_TARG_EXTRA_AUX_RAD_CUR_D + XPCFI_TARG_EXTRA_AUX_RAD_CUR_2D + XPCFI_TARG_EXTRA_AUX_TARGET_NADIR_VEL + \ 00263 XPCFI_TARG_EXTRA_AUX_MLST + XPCFI_TARG_EXTRA_AUX_TLST + \ 00264 XPCFI_TARG_EXTRA_AUX_DIST_NAD_TARG_SAT_NAD + XPCFI_TARG_EXTRA_AUX_DIST_NAD_TARG_SAT_NAD_D + \ 00265 XPCFI_TARG_EXTRA_AUX_DIST_NAD_TARG_SAT_NAD_2D + XPCFI_TARG_EXTRA_AUX_LOOK_DIR +\ 00266 XPCFI_TARG_EXTRA_AUX_DIST_SSP_MIN_DIST_GT + XPCFI_TARG_EXTRA_AUX_DIST_SSP_MIN_DIST_GT_D + \ 00267 XPCFI_TARG_EXTRA_AUX_DIST_SSP_MIN_DIST_GT_2D 00268 00269 } TargetResAuxNameEnum; 00270 00272 typedef enum 00273 { 00274 XPCFI_TARG_EXTRA_MAIN_GEO = 1, 00275 XPCFI_TARG_EXTRA_MAIN_GEO_D = 2, 00276 XPCFI_TARG_EXTRA_MAIN_GEO_2D = 4, 00277 XPCFI_TARG_EXTRA_MAIN_TARG2SAT_TOP = 8, 00278 XPCFI_TARG_EXTRA_MAIN_TARG2SAT_TOP_D = 16, 00279 XPCFI_TARG_EXTRA_MAIN_TARG2SAT_TOP_2D = 32, 00280 XPCFI_TARG_EXTRA_MAIN_SAT2TARG_TOP = 64, 00281 XPCFI_TARG_EXTRA_MAIN_SAT2TARG_TOP_D = 128, 00282 XPCFI_TARG_EXTRA_MAIN_SAT2TARG_TOP_2D = 256, 00283 XPCFI_TARG_EXTRA_MAIN_SAT2TARG_ATTITUDE = 512, 00284 XPCFI_TARG_EXTRA_MAIN_SAT2TARG_ATTITUDE_D = 1024, 00285 XPCFI_TARG_EXTRA_MAIN_SAT2TARG_ATTITUDE_2D= 2048, 00286 XPCFI_TARG_EXTRA_MAIN_TARG2SAT_ATTITUDE = 4096, /* AN-353 */ 00287 XPCFI_TARG_EXTRA_MAIN_TARG2SAT_ATTITUDE_D = 8192, /* AN-353 */ 00288 XPCFI_TARG_EXTRA_MAIN_TARG2SAT_ATTITUDE_2D=16384, /* AN-353 */ 00289 XPCFI_TARG_EXTRA_MAIN_ALL = XPCFI_TARG_EXTRA_MAIN_GEO + XPCFI_TARG_EXTRA_MAIN_GEO_D + XPCFI_TARG_EXTRA_MAIN_GEO_2D +\ 00290 XPCFI_TARG_EXTRA_MAIN_TARG2SAT_TOP + XPCFI_TARG_EXTRA_MAIN_TARG2SAT_TOP_D + XPCFI_TARG_EXTRA_MAIN_TARG2SAT_TOP_2D + \ 00291 XPCFI_TARG_EXTRA_MAIN_SAT2TARG_TOP + XPCFI_TARG_EXTRA_MAIN_SAT2TARG_TOP_D + XPCFI_TARG_EXTRA_MAIN_SAT2TARG_TOP_2D + \ 00292 XPCFI_TARG_EXTRA_MAIN_SAT2TARG_ATTITUDE + XPCFI_TARG_EXTRA_MAIN_SAT2TARG_ATTITUDE_D + XPCFI_TARG_EXTRA_MAIN_SAT2TARG_ATTITUDE_2D + \ 00293 XPCFI_TARG_EXTRA_MAIN_TARG2SAT_ATTITUDE + XPCFI_TARG_EXTRA_MAIN_TARG2SAT_ATTITUDE_D + XPCFI_TARG_EXTRA_MAIN_TARG2SAT_ATTITUDE_2D 00294 00295 }TargetResMainNameEnum; /* CAREFUL: variables holding these values MUST be declared as long !!! */ 00296 00298 typedef enum 00299 { 00300 XPCFI_SAT_DEFAULT = XLCFI_SAT_DEFAULT, 00301 XPCFI_SAT_DEFAULT1 = XLCFI_SAT_DEFAULT1, 00302 XPCFI_SAT_DEFAULT2 = XLCFI_SAT_DEFAULT2, 00303 XPCFI_SAT_DEFAULT3 = XLCFI_SAT_DEFAULT3, 00304 XPCFI_SAT_DEFAULT4 = XLCFI_SAT_DEFAULT4, 00305 XPCFI_SAT_DEFAULT5 = XLCFI_SAT_DEFAULT5, 00306 XPCFI_SAT_DEFAULT6 = XLCFI_SAT_DEFAULT6, 00307 XPCFI_SAT_DEFAULT7 = XLCFI_SAT_DEFAULT7, 00308 XPCFI_SAT_DEFAULT8 = XLCFI_SAT_DEFAULT8, 00309 XPCFI_SAT_DEFAULT9 = XLCFI_SAT_DEFAULT9, 00310 XPCFI_SAT_ERS1 = XLCFI_SAT_ERS1, 00311 XPCFI_SAT_ERS2 = XLCFI_SAT_ERS2, 00312 XPCFI_SAT_ENVISAT = XLCFI_SAT_ENVISAT, 00313 XPCFI_SAT_METOP1 = XLCFI_SAT_METOP1, 00314 XPCFI_SAT_METOP2 = XLCFI_SAT_METOP2, 00315 XPCFI_SAT_METOP3 = XLCFI_SAT_METOP3, 00316 XPCFI_SAT_CRYOSAT = XLCFI_SAT_CRYOSAT, 00317 XPCFI_SAT_ADM = XLCFI_SAT_ADM, 00318 XPCFI_SAT_GOCE = XLCFI_SAT_GOCE, 00319 XPCFI_SAT_SMOS = XLCFI_SAT_SMOS, 00320 XPCFI_SAT_TERRASAR = XLCFI_SAT_TERRASAR, 00321 XPCFI_SAT_EARTHCARE = XLCFI_SAT_EARTHCARE, 00322 XPCFI_SAT_SWARM_A = XLCFI_SAT_SWARM_A, 00323 XPCFI_SAT_SWARM_B = XLCFI_SAT_SWARM_B, 00324 XPCFI_SAT_SWARM_C = XLCFI_SAT_SWARM_C, 00325 XPCFI_SAT_SENTINEL_1A = XLCFI_SAT_SENTINEL_1A, 00326 XPCFI_SAT_SENTINEL_1B = XLCFI_SAT_SENTINEL_1B, 00327 XPCFI_SAT_SENTINEL_2 = XLCFI_SAT_SENTINEL_2, 00328 XPCFI_SAT_SENTINEL_3 = XLCFI_SAT_SENTINEL_3, 00329 XPCFI_SAT_SEOSAT = XLCFI_SAT_SEOSAT, 00330 XPCFI_SAT_SENTINEL_1C = XLCFI_SAT_SENTINEL_1C, 00331 XPCFI_SAT_SENTINEL_2A = XLCFI_SAT_SENTINEL_2A, 00332 XPCFI_SAT_SENTINEL_2B = XLCFI_SAT_SENTINEL_2B, 00333 XPCFI_SAT_SENTINEL_2C = XLCFI_SAT_SENTINEL_2C, 00334 XPCFI_SAT_SENTINEL_3A = XLCFI_SAT_SENTINEL_3A, 00335 XPCFI_SAT_SENTINEL_3B = XLCFI_SAT_SENTINEL_3B, 00336 XPCFI_SAT_SENTINEL_3C = XLCFI_SAT_SENTINEL_3C, 00337 XPCFI_SAT_JASON_CSA = XLCFI_SAT_JASON_CSA, // AN-531 00338 XPCFI_SAT_JASON_CSB = XLCFI_SAT_JASON_CSB, // AN-531 00339 XPCFI_SAT_METOP_SG_A1 = XLCFI_SAT_METOP_SG_A1, // AN-530 00340 XPCFI_SAT_METOP_SG_A2 = XLCFI_SAT_METOP_SG_A2, // AN-530 00341 XPCFI_SAT_METOP_SG_A3 = XLCFI_SAT_METOP_SG_A3, // AN-530 00342 XPCFI_SAT_METOP_SG_B1 = XLCFI_SAT_METOP_SG_B1, // AN-530 00343 XPCFI_SAT_METOP_SG_B2 = XLCFI_SAT_METOP_SG_B2, // AN-530 00344 XPCFI_SAT_METOP_SG_B3 = XLCFI_SAT_METOP_SG_B3, // AN-530 00345 XPCFI_SAT_SENTINEL_5P = XLCFI_SAT_SENTINEL_5P, // AN-502 00346 XPCFI_SAT_BIOMASS = XLCFI_SAT_BIOMASS, // AN-601 00347 XPCFI_SAT_SENTINEL_5 = XLCFI_SAT_SENTINEL_5, // AN-639 00348 XPCFI_SAT_SAOCOM_CS = XLCFI_SAT_SAOCOM_CS, // AN-640 00349 XPCFI_SAT_FLEX = XLCFI_SAT_FLEX, /* AN-683 */ 00350 XPCFI_SAT_GENERIC = XLCFI_SAT_GENERIC, 00351 // AN-353 00352 XPCFI_SAT_GENERIC_GEO = XLCFI_SAT_GENERIC_GEO, 00353 XPCFI_SAT_MTG = XLCFI_SAT_MTG, 00354 // END AN-353 00355 XPCFI_SAT_GENERIC_MEO = XLCFI_SAT_GENERIC_MEO // AN-550 00356 } SatIdPointingEnum; 00357 00359 typedef enum // Flag to indicate the grade of a derivative 00360 { 00361 XPCFI_NO_DER = XLCFI_NO_DER, 00362 XPCFI_DER_1ST = XLCFI_DER_1ST, 00363 XPCFI_DER_2ND = XLCFI_DER_2ND 00364 } DerivPointingEnum; 00365 00366 00368 typedef enum 00369 { 00370 XPCFI_TIME_UNDEF = XLCFI_TIME_UNDEF, 00371 XPCFI_TIME_TAI = XLCFI_TIME_TAI, 00372 XPCFI_TIME_UTC = XLCFI_TIME_UTC, 00373 XPCFI_TIME_UT1 = XLCFI_TIME_UT1, 00374 XPCFI_TIME_GPS = XLCFI_TIME_GPS 00375 } TimeRefPointingEnum; 00376 00378 typedef enum 00379 { 00380 XPCFI_MODE_FLAG_LOCATION = XLCFI_MODE_FLAG_LOCATION, 00381 XPCFI_MODE_FLAG_DIRECTION = XLCFI_MODE_FLAG_DIRECTION 00382 } ModeFlagPointingEnum; 00383 00385 typedef enum 00386 { 00387 XPCFI_DEM_ACE_MODEL = XDCFI_DEM_ACE_MODEL 00388 } DemModelPointingEnum; 00389 00391 typedef enum 00392 { 00393 XPCFI_LOAD_TILE_SET, 00394 XPCFI_CLEAR_CACHE, 00395 XPCFI_FREE_CACHE, 00396 XPCFI_SET_MAX_SIZE 00397 } DemConfigEnum; // AN-487 00398 00400 typedef enum 00401 { 00402 XPCFI_AZ_EL_LIST, 00403 XPCFI_AZ_EL_STRIP, 00404 XPCFI_AZ_EL_GRID 00405 } AzElTypeEnum; // AN-470 00406 00408 typedef enum 00409 { 00410 XPCFI_TARGET_LIST_INTER_ID 00411 } TargetListMethodEnum; // AN-471 00412 00414 typedef enum 00415 { 00416 XPCFI_ALL_DEM, 00417 XPCFI_DEM_SET 00418 } DemSetEnum; 00419 00421 typedef enum 00422 { 00423 XPCFI_AUTOMATIC_FLIP_MODE = 0, 00424 XPCFI_WINTER_MODE = 1, 00425 XPCFI_SUMMER_MODE = 2 00426 } YawFlipEnum; // AN-353 00427 00428 //------------------------------------------------------ 00429 // DATA STRUCTURES 00430 //------------------------------------------------------ 00431 00433 class XP_DECL AttDataRec 00434 { 00435 public: 00436 long timeRef; 00437 double time; 00438 double quaternion[4]; 00439 double angles[3]; 00440 00442 AttDataRec() 00443 { 00444 timeRef = 0; 00445 time = 0.; 00446 for ( int i = 0 ; i < 4 ; i++ ) 00447 { 00448 quaternion[i] = 0.; 00449 if ( i < 3 ) 00450 angles[i] = 0.; 00451 } 00452 } 00453 00455 AttDataRec( long timeReference, double timeIn, 00456 double *quaternions, double *angle ) 00457 { 00458 timeRef = timeReference; 00459 time = timeIn; 00460 00461 quaternion[0] = quaternions[0]; 00462 quaternion[1] = quaternions[1]; 00463 quaternion[2] = quaternions[2]; 00464 quaternion[3] = quaternions[3]; 00465 00466 angles[0] = angle[0]; 00467 angles[1] = angle[1]; 00468 angles[2] = angle[2]; 00469 } 00470 }; 00471 00473 class XP_DECL AttFileModel 00474 { 00475 public: 00476 long fileModel; 00477 double valTime0; 00478 double valTime1; 00479 long dataType; 00480 long inertialFrame; 00481 double maxGap; 00482 vector<AttDataRec> attData; 00483 }; 00484 00486 class XP_DECL StarTrackerAux 00487 { 00488 public: 00489 long starTrId; 00490 long aberrCorrection; 00491 double strAttRot[3][3]; 00492 }; 00493 00495 class XP_DECL SatAttFileModel 00496 { 00497 public: 00498 long fileModel; 00499 double valTime0; 00500 double valTime1; 00501 long dataType; 00502 long inertialFrame; 00503 double maxGap; 00504 vector<AttDataRec> attData; 00505 StarTrackerAux auxData; 00506 vector<StarTracker> tmData; 00507 }; 00508 00510 class XP_DECL QuatPlusMatrixModel 00511 { 00512 public: 00513 long inertialFrame; 00514 vector<AttRec> quat; 00515 double rotMatrix[3][3]; 00516 }; 00517 00519 class XP_DECL QuatPlusAnglesModel 00520 { 00521 public: 00522 long inertialFrame; 00523 vector<AttRec> quat; 00524 double angles[3]; 00525 }; 00526 00528 class XP_DECL AtmosIdData 00529 { 00530 public: 00531 double atmMaxAltStd; 00532 double atmMaxAltUser; 00533 }; 00534 00536 class XP_DECL AzElDefinition 00537 { 00538 public: 00539 long az0Axis; 00540 long az90Axis; 00541 long el90Axis; 00542 }; 00543 00545 class XP_DECL CsTra 00546 { 00547 public: 00548 bool azelFlag; 00549 AzElDefinition azelDef; 00550 CsRlEnum refi; 00551 AttFrEnum reff; 00552 bool ambFlag; 00553 DerivPointingEnum deriv; 00554 double v[3]; 00555 double vd[3]; 00556 double v2d[3]; 00557 double m[3][3]; 00558 double md[3][3]; 00559 double m2d[3][3]; 00560 }; 00561 00563 class XP_DECL AttitudeData 00564 { 00565 public: 00566 long model; 00567 StateVector satVector; 00568 long sourceFrame; 00569 long targetFrame; 00570 CsTra satMat; 00571 double offset[3]; 00572 CsTra attitudeEF; 00573 }; 00574 00576 class XP_DECL ParDer 00577 { 00578 public: 00579 DerivPointingEnum deriv; 00580 double p; 00581 double pd; 00582 double p2d; 00583 }; 00584 00586 class XP_DECL GenericTargetData 00587 { 00588 public: 00589 long timeRef; 00590 double time; 00591 Coord satVector; 00592 long iray; 00593 double freq; 00594 long deriv; 00595 }; 00596 00598 class XP_DECL TargetData 00599 { 00600 public: 00601 long targetNumber; // AN-470. 00602 Coord tarVector; 00603 ParDer zTan; 00604 ParDer range; 00605 ParDer time; 00606 Coord tarSatVector; 00607 Coord satTarVector; 00608 00609 TargetData const &operator=(TargetData const &tarDat) 00610 { 00611 return tarDat; 00612 } 00613 }; 00614 00616 class XP_DECL TargetIdData 00617 { 00618 public: 00619 GenericTargetData genericData; 00620 long earthCrossed; 00621 long atmCrossed; 00622 vector<TargetData> user; 00623 vector<TargetData> los; 00624 bool earthFlag; 00625 TargetData earth; 00626 Coord exitAtmVector; 00627 }; 00628 00630 class XP_DECL LatLonArea 00631 { 00632 public: 00633 double lonMin; 00634 double lonMax; 00635 double latMin; 00636 double latMax; 00637 }; // AN-487 00638 00640 class XP_DECL DemIdConfig 00641 { 00642 public: 00643 long command; 00644 long maxCacheSize; 00645 LatLonArea area; 00646 00647 }; // AN-487 00648 00650 class XP_DECL AzimuthElevation 00651 { 00652 public: 00653 double azimuth; 00654 double elevation; 00655 double azimuthRate; 00656 double elevationRate; 00657 }; // AN-470 00658 00660 class XP_DECL AzimuthElevationList 00661 { 00662 public: 00663 vector<AzimuthElevation> azElList; 00664 }; // AN-470 00665 00667 class XP_DECL AzimuthElevationStrip 00668 { 00669 public: 00670 double azimuth; 00671 double minElevation; 00672 double maxElevation; 00673 double stepElevation; 00674 }; // AN-470 00675 00677 class XP_DECL AzimuthElevationGrid 00678 { 00679 public: 00680 double minAzimuth; 00681 double maxAzimuth; 00682 double stepAzimuth; 00683 double minElevation; 00684 double maxElevation; 00685 double stepElevation; 00686 }; // AN-470 00687 00689 class XP_DECL InstrumentData 00690 { 00691 public: 00692 long type; 00693 AzimuthElevationList azimuthElevationList; 00694 AzimuthElevationStrip azimuthElevationStrip; 00695 AzimuthElevationGrid azimuthElevationGrid; 00696 double signalFrequency; 00697 }; // AN-470 00698 00700 class XP_DECL TargetOutput 00701 { 00702 public: 00703 long numUserTarget; 00704 vector<long> numLosTarget; 00705 }; // AN-470 00706 00708 class XP_DECL TargetListInputInfo 00709 { 00710 public: 00711 long inputType; 00712 double azimuth; 00713 double elevation; 00714 long azimuthIdx; 00715 long elevationIdx; 00716 }; // AN-471 00717 00719 class XP_DECL TargetInputInfo 00720 { 00721 public: 00722 long targetFunction; 00723 TargetListInputInfo targetListInputInfo; 00724 }; // AN-471 00725 00727 class XP_DECL TargetExtraResults 00728 { 00729 public: 00730 long status; 00731 TargetInputInfo targetInputInfo; 00732 vector<double> results; 00733 vector<double> resultsRate; 00734 vector<double> resultsRateRate; 00735 }; // AN-471 00736 00738 class XP_DECL TargetExtraResultsList 00739 { 00740 public: 00741 vector<TargetExtraResults> extraResults; 00742 }; // AN-471 00743 00745 class XP_DECL GenDemAltFromEllipsoidInputs 00746 { 00747 public: 00748 long setType; 00749 double lonMin; 00750 double lonMax; 00751 double latMin; 00752 double latMax; 00753 long verbose; 00754 }; // AN-466 00755 00757 class XP_DECL TransformCfg 00758 { 00759 public: 00760 TimeCorrelation timeId; 00761 ModelId modelId; 00762 CsRlEnum refFrame; 00763 }; // AN-526 00764 00765 } // closing namespace 00766 00767 #endif