IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 7441


Ignore:
Timestamp:
Jun 8, 2006, 12:08:03 PM (20 years ago)
Author:
Paul Price
Message:

Need to check the FORMAT for CHIP.X0 and CHIP.Y0. For this, we use the p_pmConceptParse_CELL_Positions and p_pmConceptFormat_CELL_Positions that we had already defined. Renamed these functions, and now use them for both CELL and CHIP X0 and Y0.

Location:
trunk/psModules/src/concepts
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/concepts/pmConcepts.c

    r7439 r7441  
    407407        {
    408408            psMetadataItem *chipX0 = psMetadataItemAllocF32("CHIP.X0", "Position of (0,0) on the FPA", NAN);
    409             pmConceptRegister(chipX0, NULL, NULL, PM_FPA_LEVEL_CHIP);
     409            pmConceptRegister(chipX0, (pmConceptParseFunc)p_pmConceptParse_Positions,
     410                              (pmConceptFormatFunc)p_pmConceptFormat_Positions, PM_FPA_LEVEL_CHIP);
    410411            psFree(chipX0);
    411412        }
     
    414415        {
    415416            psMetadataItem *chipY0 = psMetadataItemAllocF32("CHIP.Y0", "Position of (0,0) on the FPA", NAN);
    416             pmConceptRegister(chipY0, NULL, NULL, PM_FPA_LEVEL_CHIP);
     417            pmConceptRegister(chipY0, (pmConceptParseFunc)p_pmConceptParse_Positions,
     418                              (pmConceptFormatFunc)p_pmConceptFormat_Positions, PM_FPA_LEVEL_CHIP);
    417419            psFree(chipY0);
    418420        }
     
    567569        {
    568570            psMetadataItem *cellX0 = psMetadataItemAllocS32("CELL.X0", "Position of (0,0) on the chip", 0);
    569             pmConceptRegister(cellX0, (pmConceptParseFunc)p_pmConceptParse_CELL_Positions,
    570                               (pmConceptFormatFunc)p_pmConceptFormat_CELL_Positions, PM_FPA_LEVEL_CELL);
     571            pmConceptRegister(cellX0, (pmConceptParseFunc)p_pmConceptParse_Positions,
     572                              (pmConceptFormatFunc)p_pmConceptFormat_Positions, PM_FPA_LEVEL_CELL);
    571573            psFree(cellX0);
    572574        }
     
    575577        {
    576578            psMetadataItem *cellY0 = psMetadataItemAllocS32("CELL.Y0", "Position of (0,0) on the chip", 0);
    577             pmConceptRegister(cellY0, (pmConceptParseFunc)p_pmConceptParse_CELL_Positions,
    578                               (pmConceptFormatFunc)p_pmConceptFormat_CELL_Positions, PM_FPA_LEVEL_CELL);
     579            pmConceptRegister(cellY0, (pmConceptParseFunc)p_pmConceptParse_Positions,
     580                              (pmConceptFormatFunc)p_pmConceptFormat_Positions, PM_FPA_LEVEL_CELL);
    579581            psFree(cellY0);
    580582        }
  • trunk/psModules/src/concepts/pmConceptsStandard.c

    r7411 r7441  
    520520}
    521521
    522 psMetadataItem *p_pmConceptParse_CELL_Positions(psMetadataItem *concept,
     522psMetadataItem *p_pmConceptParse_Positions(psMetadataItem *concept,
    523523        psMetadataItem *pattern,
    524524        psMetadata *cameraFormat,
     
    530530    assert(cameraFormat);
    531531
    532     int offset = 0;                     // Offset of cell (0,0) corner from the chip (0,0) corner
     532    int offset = 0;                     // Offset of component (0,0) corner from the parent (0,0) corner
    533533
    534534    switch (concept->type) {
     
    782782}
    783783
    784 psMetadataItem *p_pmConceptFormat_CELL_Positions(psMetadataItem *concept,
     784psMetadataItem *p_pmConceptFormat_Positions(psMetadataItem *concept,
    785785        psMetadata *cameraFormat,
    786786        pmFPA *fpa,
  • trunk/psModules/src/concepts/pmConceptsStandard.h

    r7278 r7441  
    4848        pmChip *chip,
    4949        pmCell *cell);
    50 psMetadataItem *p_pmConceptParse_CELL_Positions(psMetadataItem *concept,
     50psMetadataItem *p_pmConceptParse_Positions(psMetadataItem *concept,
    5151        psMetadataItem *pattern,
    5252        psMetadata *cameraFormat,
     
    8484        pmChip *chip,
    8585        pmCell *cell);
    86 psMetadataItem *p_pmConceptFormat_CELL_Positions(psMetadataItem *concept,
     86psMetadataItem *p_pmConceptFormat_Positions(psMetadataItem *concept,
    8787        psMetadata *cameraFormat,
    8888        pmFPA *fpa,
Note: See TracChangeset for help on using the changeset viewer.