- Timestamp:
- Sep 19, 2014, 4:05:27 PM (12 years ago)
- Location:
- branches/eam_branches/ps2-tc3-20130727
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
psModules/src/concepts/pmConcepts.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ps2-tc3-20130727
- Property svn:mergeinfo changed
-
branches/eam_branches/ps2-tc3-20130727/psModules/src/concepts/pmConcepts.c
r30049 r37403 312 312 conceptRegisterEnum("FPA.TIMESYS", "Time system", p_pmConceptParse_TIMESYS, p_pmConceptFormat_TIMESYS, p_pmConceptCopy_TIMESYS, false, PM_FPA_LEVEL_FPA); 313 313 conceptRegisterTime("FPA.TIME", "Time of exposure", false, PM_FPA_LEVEL_FPA); 314 315 conceptRegisterTime("FPA.SHUTOUTC", "Time of exposure", false, PM_FPA_LEVEL_FPA); 316 314 317 conceptRegisterF32("FPA.TEMP", "Temperature of focal plane", NULL, NULL, NULL, false, PM_FPA_LEVEL_FPA); 315 318 conceptRegisterF32("FPA.M1X", "Primary Mirror X Position", NULL, NULL, NULL, false, PM_FPA_LEVEL_FPA); … … 578 581 } 579 582 583 int pmConceptsChipNumberFromName (pmFPA *fpa, char *name) { 584 585 for (int i = 0; i < fpa->chips->n; i++) { 586 pmChip *chip = fpa->chips->data[i]; 587 if (!chip) continue; 588 char *thisone = psMetadataLookupStr (NULL, chip->concepts, "CHIP.NAME"); 589 if (!thisone) continue; 590 if (!strcmp (name, thisone)) return (i); 591 } 592 return -1; 593 } 594 595 pmChip *pmConceptsChipFromName (pmFPA *fpa, char *name) { 596 597 for (int i = 0; i < fpa->chips->n; i++) { 598 pmChip *chip = fpa->chips->data[i]; 599 if (!chip) continue; 600 char *thisone = psMetadataLookupStr (NULL, chip->concepts, "CHIP.NAME"); 601 if (!thisone) continue; 602 if (!strcmp (name, thisone)) return (chip); 603 } 604 return NULL; 605 } 606
Note:
See TracChangeset
for help on using the changeset viewer.
