IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 24058


Ignore:
Timestamp:
May 4, 2009, 2:52:00 PM (17 years ago)
Author:
Paul Price
Message:

Previous fix resulted in scans being bad when reading with overlap by ppStack: the lastScan wasn't being set sufficiently high (was thisScan - overlap + numScans; now is thisScan + numScans).

File:
1 edited

Legend:

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

    r24007 r24058  
    6464
    6565// Set the "thisXXXScan" value in the readout for the appropriate image type
    66 static int readoutSetThisScan(pmReadout *readout, // Readout of interest
     66static void readoutSetThisScan(pmReadout *readout, // Readout of interest
    6767                              fpaReadType type, // Type of image
    6868                              int thisScan // Starting scan number
     
    7272      case FPA_READ_TYPE_IMAGE:
    7373        readout->thisImageScan = thisScan;
    74         return readout->lastImageScan;
     74        return;
    7575      case FPA_READ_TYPE_MASK:
    7676        readout->thisMaskScan = thisScan;
    77         return readout->lastMaskScan;
     77        return;
    7878      case FPA_READ_TYPE_VARIANCE:
    7979        readout->thisVarianceScan = thisScan;
    80         return readout->lastVarianceScan;
     80        return;
    8181      default:
    8282        psAbort("Unknown read type: %x\n", type);
    8383    }
    84     return false;
    8584}
    8685
     
    103102
    104103// Set the "lastXXXScan" value in the readout for the appropriate image type
    105 static int readoutSetLastScan(pmReadout *readout, // Readout of interest
     104static void readoutSetLastScan(pmReadout *readout, // Readout of interest
    106105                              fpaReadType type, // Type of image
    107106                              int lastScan // Last scan number
     
    111110      case FPA_READ_TYPE_IMAGE:
    112111        readout->lastImageScan = lastScan;
    113         return readout->lastImageScan;
     112        return;
    114113      case FPA_READ_TYPE_MASK:
    115114        readout->lastMaskScan = lastScan;
    116         return readout->lastMaskScan;
     115        return;
    117116      case FPA_READ_TYPE_VARIANCE:
    118117        readout->lastVarianceScan = lastScan;
    119         return readout->lastVarianceScan;
     118        return;
    120119      default:
    121120        psAbort("Unknown read type: %x\n", type);
    122121    }
    123     return false;
    124122}
    125123
     
    592590    }
    593591
     592    int origThisScan = thisScan;        // Original value of thisScan (starting point for read)
    594593    if (thisScan == 0) {
    595594        overlap = 0;
     
    617616        }
    618617    }
    619 
    620     // Determine the number of scans to read
    621     int lastScan = readoutSetLastScan(readout, type, thisScan + numScans);
     618    int lastScan = origThisScan + numScans; // Last scan to read
     619
    622620    readoutSetThisScan(readout, type, thisScan);
     621    readoutSetLastScan(readout, type, lastScan);
    623622
    624623    // Blow away existing data.
Note: See TracChangeset for help on using the changeset viewer.