OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
eng_qual.h
Go to the documentation of this file.
1 /*
2  $Header: /app/shared/RCS/irix-5.2/seawifsd/src/hdfio/Shared.V4.2/L012_Util/util/osc/eng_qual.h,v 4.11 1995/01/25 17:24:26 seawifsd Exp seawifsd $
3  $Log: eng_qual.h,v $
4  Revision 4.11 1995/01/25 17:24:26 seawifsd
5  1. added macro definition of USE_POWER_A/USE_POWER_B to indicate the
6  choice of power supply.
7  2. updated macro definition FILLLIMIT to include the extra fields that was
8  used when analog power is off.
9  3. defined several macros(LIMITTYPE,LIMITHARDLOW,...) to indicate the
10  order of the index in defining limits for each telemetry field.
11  4. defined a structure eng_qualbitStruct for the engineer quality flag field
12  and a union eng_qual.
13  5. included the necessary include header files.
14 
15  Revision 4.10 1995/01/18 14:38:23 seawifsd
16  defined constants for engineer quality flags.
17 
18  */
19 
20 #ifndef ENG_QUAL_H_
21 #define ENG_QUAL_H_
22 
23 
24 
25 #define LFLAG0 0
26 #define LFLAG1 1
27 #define LFLAG2 2
28 #define LFLAG3 4
29 #define LFLAG4 8
30 
31 #define USE_POWER_A 1
32 #define USE_POWER_B 0
33 
34 #define GRANULE 0.0001
35 #define FILLLIMIT LFLAG0,-GRANULE,GRANULE,-GRANULE,GRANULE,-GRANULE,GRANULE
36 #define LIMITTYPE 0
37 #define LIMITHARDLOW 1
38 #define LIMITHARDHIGH 2
39 #define LIMITSOFTLOW 3
40 #define LIMITSOFTHIGH 4
41 #define LIMITSOFTOFFLOW 5
42 #define LIMITSOFTOFFHIGH 6
43 
44 typedef struct eng_qualbitStruct {
45  /* first byte */
51  unsigned int TILT_BASE_TEMPERATURE_FLAG : 1;
54  /* second byte */
63  /* thrid byte */
69  unsigned int TILT_PLATFORM_POSITION_FLAG : 1;
70  unsigned int TILT_BASE_POSITION_FLAG : 1;
71  unsigned int HEATERS_CURRENT_FLAG : 1;
72  /* fourth byte */
77  unsigned int SERVO_A_PHASE_ERROR_FLAG : 1;
78  unsigned int SERVO_B_PHASE_ERROR_FLAG : 1;
81 } eng_qualbitType;
82 
83 #ifndef byte
84 #define byte unsigned char
85 #endif /* byte */
86 
87 typedef union eng_qual {
88  byte bt[4];
89  short st[2];
90  int in;
91  eng_qualbitType bits;
92 } eng_qualType;
93 
94 #include "stdio.h"
95 //#include "usrhdr.h"
96 #include "usrmac.h"
97 #include "eng_qual_proto.h"
98 
99 #endif/* ENG_QUAL_H_ */
unsigned int POWER_SUPPLY_POS_5_VOLT_SERVO_FLAG
Definition: eng_qual.h:67
unsigned int HEATERS_CURRENT_FLAG
Definition: eng_qual.h:71
unsigned int POWER_SUPPLY_TEMPERATURE_FLAG
Definition: eng_qual.h:60
short st[2]
Definition: eng_qual.h:89
byte bt[4]
Definition: eng_qual.h:88
unsigned int TILT_PLATFORM_TEMPERATURE_FLAG
Definition: eng_qual.h:52
unsigned int POWER_SUPPLY_NEG_15_VOLT_ANALOG_FLAG
Definition: eng_qual.h:58
eng_qualbitType bits
Definition: eng_qual.h:91
unsigned int HALF_ANG_MOTOR_TEMPERATURE_FLAG
Definition: eng_qual.h:53
unsigned int BAND_7_8_FPA_TEMPERATURE_FLAG
Definition: eng_qual.h:49
unsigned int TILT_BASE_TEMPERATURE_FLAG
Definition: eng_qual.h:51
unsigned int TELESCOPE_B_MOTOR_CURRENT_FLAG
Definition: eng_qual.h:74
unsigned int TILT_PLATFORM_POSITION_FLAG
Definition: eng_qual.h:69
unsigned int BAND_3_4_FPA_TEMPERATURE_FLAG
Definition: eng_qual.h:47
unsigned int POWER_SUPPLY_POS_30_VOLT_SERVO_FLAG
Definition: eng_qual.h:64
unsigned int TELESCOPE_MOTOR_TEMPERATURE_FLAG
Definition: eng_qual.h:50
unsigned int ANG_MOM_COMP_A_MOTOR_CURRENT_FLAG
Definition: eng_qual.h:79
unsigned int BAND_1_2_POST_AMP_TEMPERATURE_FLAG
Definition: eng_qual.h:61
unsigned int SERVO_DRIVER_TEMPERATURE_FLAG
Definition: eng_qual.h:62
unsigned int SERVO_B_PHASE_ERROR_FLAG
Definition: eng_qual.h:78
unsigned int TELESCOPE_A_MOTOR_CURRENT_FLAG
Definition: eng_qual.h:73
unsigned int SERVO_A_PHASE_ERROR_FLAG
Definition: eng_qual.h:77
unsigned int POWER_SUPPLY_A_INPUT_CURRENT_FLAG
Definition: eng_qual.h:55
int in
Definition: eng_qual.h:90
unsigned int ANG_MOM_COMP_B_MOTOR_CURRENT_FLAG
Definition: eng_qual.h:80
unsigned int ANG_MOM_COMP_PHASE_ERROR_FLAG
Definition: eng_qual.h:68
unsigned int HALF_ANG_MIR_B_MOTOR_CURRENT_FLAG
Definition: eng_qual.h:76
unsigned int POWER_SUPPLY_B_INPUT_CURRENT_FLAG
Definition: eng_qual.h:56
unsigned int TILT_BASE_POSITION_FLAG
Definition: eng_qual.h:70
unsigned int POWER_SUPPLY_POS_21_VOLT_SERVO_FLAG
Definition: eng_qual.h:65
unsigned int POWER_SUPPLY_POS_5_VOLT_LOGIC_FLAG
Definition: eng_qual.h:59
unsigned int POWER_SUPPLY_POS_15_VOLT_ANALOG_FLAG
Definition: eng_qual.h:57
unsigned int BAND_5_6_FPA_TEMPERATURE_FLAG
Definition: eng_qual.h:48
unsigned int HALF_ANG_MIR_A_MOTOR_CURRENT_FLAG
Definition: eng_qual.h:75
unsigned int BAND_1_2_FPA_TEMPERATURE_FLAG
Definition: eng_qual.h:46
unsigned int POWER_SUPPLY_NEG_21_VOLT_SERVO_FLAG
Definition: eng_qual.h:66