Jump to content
Go to the documentation of this file.
57 #define byte unsigned char
62 #define QF1_SCALE_FACTOR 1/5
81 #define LAC_TLM_OFF 790
82 #define LAC_TLM_LEN TLM_LEN
86 #define LAC_TDI_LEN TDI_LEN
87 #define LAC_START_OFF 16
88 #define LAC_START_LEN START_LEN
89 #define LAC_DARK_OFF DARK_OFF
90 #define LAC_DARK_LEN DARK_LEN
91 #define LAC_IMAGE_OFF 48
92 #define LAC_IMAGE_LEN 20560
93 #define LAC_STOP_OFF 20608
94 #define LAC_STOP_LEN STOP_LEN
100 #define GAC_TDI_OFF 0
101 #define GAC_TDI_LEN TDI_LEN
102 #define GAC_START_OFF 16
103 #define GAC_START_LEN START_LEN
104 #define GAC_DARK_OFF DARK_OFF
105 #define GAC_DARK_LEN DARK_LEN
106 #define GAC_IMAGE_OFF 48
107 #define GAC_IMAGE_LEN 3968
108 #define GAC_STOP_OFF 4016
109 #define GAC_STOP_LEN STOP_LEN
111 #define GAC_TLM_OFF 20950
112 #define GAC_TLM_LEN TLM_LEN
122 #define GAC_SPR_OFF 21390
123 #define GAC_SPR_LEN 112
126 #define SPR_OFF 21502
129 #define FFM_LEN 21504
130 #define FFMRECLEN FFM_LEN
131 #define FFM_RAW_LEN 13860
136 #define RECORDER_SIZE 65536
137 #define RECORDER2_LIMIT 59990
138 #define RECORDER_TLM_SIZE (RECORDER_SIZE - RECORDER2_LIMIT)
139 #define ALLOCATE_GAC_SIZE(x) ((x * FFM_RAW_LEN + 500) / 1000 - RECORDER_SIZE)
140 #define ALLOCATE_LAC_SIZE(x) ((x * FFM_RAW_LEN + 500) / 1000)
143 #define FFMHDRLEN 512
145 #define FF_MISSING_FRAMES 1
147 #define GAC_PER_FFM 5
151 #define PIXEL_BLEN BANDS*2
152 #define PIXEL_WLEN BANDS
158 #define SCI_DATA_BOFF 2*PIXEL_BLEN
159 #define SCI_DATA_WOFF 2*PIXEL_WLEN
160 #define START_SYNC_OFF 0
161 #define DARK_RESTORE_OFF 1
162 #define GAC_PIXEL_NUM 248
163 #define LAC_PIXEL_NUM 1285
164 #define MAX_PIXEL_VALUE 1023
165 #define MIN_PIXEL_VALUE 0
166 #define SATURATED_VALUE 1023
168 #define LAC_PIX_START 1
169 #define GAC_PIX_START 147
170 #define LAC_PIX_SUB 1
171 #define GAC_PIX_SUB 4
181 #define MSEC_PER_DAY 86400000
182 #define GAC_MSEC_INC (1000.0 * 4.0/6.0)
183 #define LAC_MSEC_INC (1000.0/6.0)
184 #define GAC_FFM_MSEC_INC ((GAC_MSEC_INC) * (GAC_PER_FFM))
185 #define LAC_FFM_MSEC_INC (LAC_MSEC_INC)
191 #define PCT_MSEC_ERR 1
194 #define GAC_MSEC_ERR 1
197 #define LAC_MSEC_ERR 1
203 #define FFM_GAP_MAX 30
204 #define GAC_FFM_GAP_MAX FFM_GAP_MAX
205 #define LAC_FFM_GAP_MAX FFM_GAP_MAX
206 #define GAC_MSEC_GAP_MAX ((GAC_FFM_GAP_MAX) * (GAC_FFM_MSEC_INC))
207 #define LAC_MSEC_GAP_MAX ((LAC_FFM_GAP_MAX) * (LAC_FFM_MSEC_INC))
209 #define REVERSE_MSEC_GAP 1.0
211 #define ERR_UTIME REVERSE_MSEC_GAP
219 #define FILL_FRAME_PAT 89
220 #define REAL_FRAME_PAT 0