13 #ifndef ANITA_COMMAND_H 14 #define ANITA_COMMAND_H 17 #define ACQD_ID_MASK 0x001 18 #define ARCHIVED_ID_MASK 0x002 19 #define CALIBD_ID_MASK 0x004 20 #define CMDD_ID_MASK 0x008 21 #define EVENTD_ID_MASK 0x010 22 #define GPSD_ID_MASK 0x020 23 #define HKD_ID_MASK 0x040 24 #define LOSD_ID_MASK 0x080 25 #define PRIORITIZERD_ID_MASK 0x100 26 #define SIPD_ID_MASK 0x200 27 #define MONITORD_ID_MASK 0x400 28 #define PLAYBACKD_ID_MASK 0x800 29 #define LOGWATCHD_ID_MASK 0x1000 30 #define NTUD_ID_MASK 0x2000 31 #define OPENPORTD_ID_MASK 0x4000 32 #define ALL_ID_MASK 0xffff 58 CMD_TAIL_VAR_LOG_MESSAGES = 1,
59 CMD_TAIL_VAR_LOG_ANITA = 2,
60 CMD_START_NEW_RUN = 3,
61 CMD_MAKE_NEW_RUN_DIRS = 4,
62 LOG_REQUEST_COMMAND = 10,
63 JOURNALCTL_REQUEST_COMMAND =11,
66 CMD_REALLY_KILL_PROGS = 127,
67 CMD_SIPD_REBOOT = 128,
68 CMD_SHUTDOWN_HALT = 129,
71 CMD_RESPAWN_PROGS =132,
72 CMD_START_PROGS = 133,
74 CMD_DISABLE_DISK= 135,
75 CMD_MOUNT_NEXT_USB = 136,
76 CMD_MOUNT_NEXT_NTU = 137,
77 CMD_EVENT_DISKTYPE = 138,
78 CMD_HK_DISKTYPE = 139,
80 ARCHIVE_STORAGE_TYPE = 140,
81 ARCHIVE_PRI_DISK = 141,
82 ARCHIVE_PRI_ENC_TYPE=142,
83 ARCHIVE_DECIMATE_PRI = 144,
84 ARCHIVE_GLOBAL_DECIMATE = 145,
86 TELEM_PRI_ENC_TYPE = 147,
87 ARCHIVE_PPS_PRIORITIES = 148,
88 ARCHIVE_PPS_DECIMATE = 149,
106 CMD_TURN_AMPLITES_ON = 150,
107 CMD_TURN_AMPLITES_OFF = 151,
108 CMD_TURN_BZ_AMPAS_ON = 152,
109 CMD_TURN_BZ_AMPAS_OFF = 153,
110 CMD_TURN_NTU_AMPAS_ON = 154,
111 CMD_TURN_NTU_AMPAS_OFF = 155,
112 CMD_TURN_SHORT_BOARDS_ON = 156,
113 CMD_TURN_SHORT_BOARDS_OFF = 157,
114 CMD_TURN_NTU_SSD_5V_ON = 158,
115 CMD_TURN_NTU_SSD_5V_OFF = 159,
116 CMD_TURN_NTU_SSD_12V_ON = 160,
117 CMD_TURN_NTU_SSD_12V_OFF = 161,
118 CMD_TURN_ALL_ON = 162,
119 CMD_TURN_ALL_OFF = 163,
121 SET_CALIB_WRITE_PERIOD = 176,
123 SET_ADU5_PAT_PERIOD = 180,
124 SET_ADU5_SAT_PERIOD = 181,
125 SET_G12_PPS_PERIOD = 182,
126 SET_G12_PPS_OFFSET = 183,
127 SET_ADU5_CALIBRATION_12 = 184,
128 SET_ADU5_CALIBRATION_13 = 185,
129 SET_ADU5_CALIBRATION_14 = 186,
130 SET_ADU5_VTG_PERIOD = 187,
131 SET_G12_POS_PERIOD = 188,
132 GPSD_EXTRA_COMMAND = 189,
135 SET_HK_CAL_PERIOD = 191,
136 SET_HK_TELEM_EVERY = 192,
138 SIPD_CONTROL_COMMAND = 195,
139 LOSD_CONTROL_COMMAND =196,
152 MONITORD_RAMDISK_KILL_ACQD = 220,
153 MONITORD_RAMDISK_DUMP_DATA = 221,
154 MONITORD_MAX_ACQD_WAIT = 222,
155 MONITORD_PERIOD = 223,
156 MONITORD_USB_THRESH = 224,
157 MONITORD_NTU_THRESH = 225,
158 MONITORD_MAX_QUEUE = 226,
159 MONITORD_INODES_KILL_ACQD = 227,
160 MONITORD_INODES_DUMP_DATA = 228,
162 ACQD_ADU5_TRIG_FLAG = 230,
163 ACQD_G12_TRIG_FLAG = 231,
164 ACQD_SOFT_TRIG_FLAG = 232,
165 ACQD_SOFT_TRIG_PERIOD = 233,
168 ACQD_PEDESTAL_RUN = 236,
169 ACQD_THRESHOLD_SCAN =237,
175 ACQD_EXTRA_COMMAND = 240,
176 ACQD_REPROGRAM_TURF = 241,
177 ACQD_SURFHK_TELEM_EVERY = 243,
178 ACQD_TURFHK_TELEM_EVERY =244,
179 ACQD_NUM_EVENTS_PEDESTAL = 245,
180 ACQD_THRESH_SCAN_STEP_SIZE = 246,
181 ACQD_THRESH_SCAN_POINTS_PER_STEP = 247,
184 ACQD_RATE_COMMAND = 250,
186 EVENTD_MATCH_GPS = 251,
187 GPS_PHI_MASK_COMMAND = 252,
188 PRIORITIZERD_COMMAND =253,
189 PLAYBACKD_COMMAND =254
193 ACQD_RATE_ENABLE_CHAN_SERVO=1,
194 ACQD_RATE_SET_PID_GOALS=2,
195 ACQD_RATE_SET_ANT_TRIG_MASK=3,
196 ACQD_RATE_SET_PHI_MASK=4,
197 ACQD_RATE_SET_SURF_BAND_TRIG_MASK=5,
198 ACQD_RATE_SET_CHAN_PID_GOAL_SCALE=6,
199 ACQD_RATE_SET_RATE_SERVO=7,
200 ACQD_RATE_ENABLE_DYNAMIC_PHI_MASK=8,
201 ACQD_RATE_ENABLE_DYNAMIC_ANT_MASK=9,
202 ACQD_RATE_SET_DYNAMIC_PHI_MASK_OVER=10,
203 ACQD_RATE_SET_DYNAMIC_PHI_MASK_UNDER=11,
204 ACQD_RATE_SET_DYNAMIC_ANT_MASK_OVER=12,
205 ACQD_RATE_SET_DYNAMIC_ANT_MASK_UNDER=13,
206 ACQD_RATE_SET_GLOBAL_THRESHOLD=14,
207 ACQD_RATE_SET_GPS_PHI_MASK=15,
208 ACQD_SET_NADIR_PID_GOALS=16,
209 ACQD_SET_PID_PGAIN=17,
210 ACQD_SET_PID_IGAIN=18,
211 ACQD_SET_PID_DGAIN=19,
212 ACQD_SET_PID_IMAX=20,
213 ACQD_SET_PID_IMIN=21,
214 ACQD_SET_PID_AVERAGE=22,
215 ACQD_RATE_SET_PHI_MASK_HPOL=23
216 } AcqdRateCommandCode_t;
219 ACQD_DISABLE_SURF = 127,
220 ACQD_SET_TURF_RATE_AVERAGE = 128,
221 ACQD_SET_PHOTO_SHUTTER_MASK = 140,
222 ACQD_SET_PPS_SOURCE = 141,
223 ACQD_SET_REF_CLOCK_SOURCE = 142
224 } AcqdExtraCommand_t;
230 PRI_PANIC_QUEUE_LENGTH=1,
231 PRI_PARAMS_LOW_BIN_EDGE=2,
232 PRI_PARAMS_HIGH_BIN_EDGE=3,
233 PRI_SLOPE_IMAGE_HILBERT=4,
234 PRI_INTERCEPT_IMAGE_HILBERT=5,
235 PRI_BIN_TO_BIN_THRESH=6,
236 PRI_ABS_MAG_THRESH=7,
237 PRI_THETA_ANGLE_DEMOTION_LOW=8,
238 PRI_THETA_ANGLE_DEMOTION_HIGH=9,
239 PRI_THETA_ANGLE_DEMOTION_PRIORITY=10,
240 PRI_POWER_SPECTRUM_PERIOD=11,
244 PRI_POS_SATUATION=15,
246 } PrioritizerdCommandCode_t;
249 GPS_PHI_MASK_ENABLE=1,
250 GPS_PHI_MASK_UPDATE_PERIOD=2,
251 GPS_PHI_MASK_SET_SOURCE_LATITUDE=3,
252 GPS_PHI_MASK_SET_SOURCE_LONGITUDE=4,
253 GPS_PHI_MASK_SET_SOURCE_ALTITUDE=5,
254 GPS_PHI_MASK_SET_SOURCE_HORIZON=6,
255 GPS_PHI_MASK_SET_SOURCE_WIDTH=7
256 } GpsPhiMaskCommandCode_t;
267 } PlaybackCommandCode_t;
270 SIPD_SEND_WAVE = 127,
271 SIPD_THROTTLE_RATE = 128,
272 SIPD_PRIORITY_BANDWIDTH = 129,
273 SIPD_HEADERS_PER_EVENT = 130,
274 SIPD_HK_TELEM_ORDER = 131,
275 SIPD_HK_TELEM_MAX_PACKETS = 132
280 LOSD_PRIORITY_BANDWIDTH = 2,
281 LOSD_HK_BANDWIDTH = 3
285 LOG_REQUEST_JOURNALCTL = 1,
286 LOG_REQUEST_ANITA = 2,
287 LOG_REQUEST_SECURITY = 3,
289 LOG_REQUEST_BOOT = 5,
290 LOG_REQUEST_PROC_CPUINFO = 6,
291 LOG_REQUEST_PROC_DEVICES = 7,
292 LOG_REQUEST_PROC_DISKSTATS = 8,
293 LOG_REQUEST_PROC_FILESYSTEMS = 9,
294 LOG_REQUEST_PROC_INTERRUPTS = 10,
295 LOG_REQUEST_PROC_IOMEM = 11,
296 LOG_REQUEST_PROC_IOPORTS = 12,
297 LOG_REQUEST_PROC_LOADAVG =13,
298 LOG_REQUEST_PROC_MEMINFO =14,
299 LOG_REQUEST_PROC_MISC = 15,
300 LOG_REQUEST_PROC_MODULES = 16,
301 LOG_REQUEST_PROC_MOUNTS = 17,
302 LOG_REQUEST_PROC_MTRR = 18,
303 LOG_REQUEST_PROC_PARTITIONS = 19,
304 LOG_REQUEST_PROC_SCHEDDEBUG = 20,
305 LOG_REQUEST_PROC_SCHEDSTAT = 21,
306 LOG_REQUEST_PROC_STAT = 22,
307 LOG_REQUEST_PROC_SWAPS = 23,
308 LOG_REQUEST_PROC_TIMERLIST = 24,
309 LOG_REQUEST_PROC_TIMERSTATS= 25,
310 LOG_REQUEST_PROC_UPTIME = 26,
311 LOG_REQUEST_PROC_VERSION = 27,
312 LOG_REQUEST_PROC_VMCORE = 28,
313 LOG_REQUEST_PROC_VMSTAT = 29,
314 LOG_REQUEST_PROC_ZONEINFO = 30,
315 LOG_REQUEST_NTU_STATUS = 31,
317 } LogRequestCommand_t;
321 JOURNALCTL_OPT_COMM=0,
322 JOURNALCTL_OPT_PRIORITY=1,
323 JOURNALCTL_OPT_SYSLOG_FACILITY=2,
325 } JournalctlOptionCommand_t;
329 GPS_SET_GGA_PERIOD = 130,
330 GPS_SET_PAT_TELEM_EVERY = 131,
331 GPS_SET_VTG_TELEM_EVERY = 132,
332 GPS_SET_SAT_TELEM_EVERY = 133,
333 GPS_SET_GGA_TELEM_EVERY = 134,
334 GPS_SET_POS_TELEM_EVERY = 135,
335 GPS_SET_INI_RESET_FLAG = 136,
336 GPS_SET_ELEVATION_MASK = 137,
337 GPS_SET_CYC_PHASE_ERROR = 138,
338 GPS_SET_MXB_BASELINE_ERROR = 139,
339 GPS_SET_MXM_PHASE_ERROR = 140