IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 9, 2013, 12:24:53 PM (13 years ago)
Author:
eugene
Message:

WCS Newton-Raphson analysis has Alpha cross terms inverted; mods to fpaFileDefineFromArray, fpaFileDefineFromArray for readability and to allow for output config to differ from input config; add new function pmFPAfileDefineNewConfig; add pmChipSelectCells, pmFPAExcludeChips; set target chip and cell attributes to match source in pmFPACopy; split out errors in addSource

Location:
trunk/psModules
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules

  • trunk/psModules/src/camera/pmFPAFlags.c

    r29935 r35561  
    379379            }
    380380        }
     381    }
     382    return true;
     383}
     384
     385
     386// XXX this function should probably be re-defined to merge with 'setCellsProcess'
     387bool pmChipSelectCells(pmChip *chip)
     388{
     389    PS_ASSERT_PTR_NON_NULL(chip, false);
     390
     391    psArray *cells = chip->cells;       // Component cells
     392    if (!cells) {
     393        return false;
     394    }
     395
     396    for (int i = 0; i < cells->n; i++) {
     397        pmCell *cell = cells->data[i];
     398        if (!cell) {
     399            continue;
     400        }
     401        cell->process = true;
    381402    }
    382403    return true;
     
    415436
    416437
     438// turn off all chips
     439bool pmFPAExcludeChips(pmFPA *fpa)
     440{
     441    PS_ASSERT_PTR_NON_NULL(fpa, false);
     442
     443    psArray *chips = fpa->chips;        // Component chips
     444    if (chips == NULL) {
     445        psWarning("WARNING: fpa->chips == NULL\n");
     446        return false;
     447    }
     448
     449    for (int i = 0 ; i < chips->n ; i++) {
     450        pmChip *tmpChip = (pmChip *) chips->data[i]; // Chip of interest
     451        if (tmpChip != NULL) {
     452          tmpChip->process = false;
     453          setCellsProcess(tmpChip, false); // Wipe out the cell as well
     454        }
     455    }
     456
     457    return true;
     458}
     459
    417460int pmChipExcludeCell(pmChip *chip, int cellNum)
    418461{
Note: See TracChangeset for help on using the changeset viewer.