IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 6839


Ignore:
Timestamp:
Apr 11, 2006, 6:11:38 PM (20 years ago)
Author:
Paul Price
Message:

Adding HDUs using function calls instead of DIY.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/rel10_ifa/psModules/src/astrom/pmFPAConstruct.c

    r6834 r6839  
    421421    pmCell *cell = NULL;                // The cell that corresponds to the PHU
    422422    if (strcasecmp(phuType, "FPA") == 0) {
    423         fpa->hdu = phdu;
     423        addHDUtoFPA(fpa, phdu);
     424        psFree(phdu);
    424425    } else {
    425426        psArray *chips = fpa->chips;    // Array of chips
     
    432433        chip = chips->data[phuView->chip];
    433434        if (strcasecmp(phuType, "CHIP") == 0) {
    434             chip->hdu = phdu;
     435            addHDUtoChip(chip, phdu);
     436            psFree(phdu);
    435437        } else if (strcasecmp(phuType, "CELL") == 0) {
    436438            psArray *cells = chip->cells; // Array of cells
     
    441443                return false;
    442444            }
    443             cell->hdu = phdu;
     445            addHDUtoCell(cell, phdu);
     446            psFree(phdu);
    444447        } else {
    445448            psError(PS_ERR_IO, true, "PHU in the camera configuration format is not FPA, CHIP or CELL.\n");
Note: See TracChangeset for help on using the changeset viewer.