IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 15098


Ignore:
Timestamp:
Sep 28, 2007, 3:57:57 PM (19 years ago)
Author:
Paul Price
Message:

processChip wasn't putting the HDU in at the correct place. It's
dependent upon who calls it, so added additional parameter.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/camera/pmFPAConstruct.c

    r15087 r15098  
    398398                        pmFPA *fpa, // FPA of interest
    399399                        pmChip *chip, // Chip of interest
     400                        pmFPALevel level, // Level for HDU to go
    400401                        pmHDU *hdu      // HDU to add
    401402                        )
     
    422423    }
    423424
    424     if (!processContents(fpa, chip, hdu, PM_FPA_LEVEL_CELL, NULL, cellNames, cellTypes, format)) {
     425    if (!processContents(fpa, chip, hdu, level, NULL, cellNames, cellTypes, format)) {
    425426        psError(PS_ERR_UNKNOWN, false, "Unable to set contents for chip from camera format.");
    426427        psFree(cellNames);
     
    561562        }
    562563
    563         if (!processChip(format, chipContents, fpa, chip, hdu)) {
     564        if (!processChip(format, chipContents, fpa, chip, PM_FPA_LEVEL_FPA, hdu)) {
    564565            psError(PS_ERR_UNKNOWN, false, "Unable to process chip %d\n", chipNum);
    565566            psFree(hdu);
     
    784785        hdu->format = psMemIncrRefCounter((const psPtr)format);
    785786
    786         if (!processChip(format, contentItem->data.str, fpa, chip, hdu)) {
     787        if (!processChip(format, contentItem->data.str, fpa, chip, PM_FPA_LEVEL_CELL, hdu)) {
    787788            psError(PS_ERR_UNKNOWN, false, "Unable to process chip\n");
    788789            psFree(hdu);
     
    874875    psFree(chipType);
    875876
    876     if (!processChip(format, chipContents, fpa, chip, NULL)) {
     877    if (!processChip(format, chipContents, fpa, chip, PM_FPA_LEVEL_NONE, NULL)) {
    877878        psError(PS_ERR_UNKNOWN, false, "Unable to process chip\n");
    878879        return false;
Note: See TracChangeset for help on using the changeset viewer.