Changeset 42315
- Timestamp:
- Dec 1, 2022, 2:07:33 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20220316/fpcamera/src/fpcameraParseCamera.c
r42186 r42315 24 24 if (!psphotSetMaskBits (config)) ESCAPE (PS_ERR_UNKNOWN, "failed to set mask bit values"); 25 25 26 // the input smf file is a required argument 27 pmFPAfileDefineFromArgs (&status, config, "FPCAMERA.INPUT.ASTROM", "INPUT.ASTROM"); 26 // the input smf file is a required argument. the smf file is distinct from the input 27 // chips (FPCAMERA.INPUT = input). accept the return argument to set the selected 28 // chips in this pmFPAfile (as well as input) 29 30 pmFPAfile *astro = pmFPAfileDefineFromArgs (&status, config, "FPCAMERA.INPUT.ASTROM", "INPUT.ASTROM"); 28 31 if (!status) ESCAPE(FPCAMERA_ERR_CONFIG, "Failed to build FPA from FPCAMERA.INPUT.ASTROM"); 29 32 … … 55 58 if (chips->n > 0) { 56 59 pmFPASelectChip (input->fpa, -1, true); // deselect all chips 60 pmFPASelectChip (astro->fpa, -1, true); // deselect all chips 57 61 for (int i = 0; i < chips->n; i++) { 58 62 int chipNum = atoi(chips->data[i]); 59 if (! pmFPASelectChip(input->fpa, chipNum, false)) ESCAPE(FPCAMERA_ERR_CONFIG, "Chip number %d doesn't exist in camera.\n", chipNum); 63 if (! pmFPASelectChip(input->fpa, chipNum, false)) ESCAPE(FPCAMERA_ERR_CONFIG, "Chip number %d doesn't exist in input chip images.\n", chipNum); 64 if (! pmFPASelectChip(astro->fpa, chipNum, false)) ESCAPE(FPCAMERA_ERR_CONFIG, "Chip number %d doesn't exist in astrometry file.\n", chipNum); 60 65 } 61 66 }
Note:
See TracChangeset
for help on using the changeset viewer.
