IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 30049 for trunk/psModules


Ignore:
Timestamp:
Dec 15, 2010, 1:29:28 PM (16 years ago)
Author:
watersc1
Message:

Merge of realtime burntool and new nightly science code into trunk.

Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/psModules/src/concepts/pmConcepts.c

    r28552 r30049  
    249249CONCEPT_REGISTER_FUNCTION(S32, Enum, -1); // For enums: set default to -1
    250250CONCEPT_REGISTER_FUNCTION(S32, S32, 0); // For values: set default to 0
    251 //CONCEPT_REGISTER_FUNCTION(Bool, Bool, NULL); // For values: set default to 0
     251CONCEPT_REGISTER_FUNCTION(Bool, Bool, NULL); // For values: set default to 0
    252252
    253253static void conceptRegisterTime(const char *name, /* Name of concept */ \
     
    353353        conceptRegisterStr("CHIP.ID", "Chip identifier", NULL, NULL, NULL, false, PM_FPA_LEVEL_CHIP);
    354354        conceptRegisterF32("CHIP.SEEING", "Seeing FWHM (pixels)", NULL, NULL, NULL, false, PM_FPA_LEVEL_CHIP);
     355        conceptRegisterBool("CHIP.VIDEOCELL", "Does this OTA have any video cells", p_pmConceptParse_VideoCell,NULL,NULL,false,PM_FPA_LEVEL_CHIP);
    355356    }
    356357
  • trunk/psModules/src/concepts/pmConceptsStandard.c

    r28690 r30049  
    737737    return psMetadataItemAllocS32(pattern->name, pattern->comment, binning);
    738738}
     739
     740// VIDEOCELLS
     741psMetadataItem *p_pmConceptParse_VideoCell(const psMetadataItem *concept,
     742                                          const psMetadataItem *pattern,
     743                                          pmConceptSource source,
     744                                          const psMetadata *cameraFormat,
     745                                          const pmFPA *fpa,
     746                                          const pmChip *chip,
     747                                          const pmCell *cell)
     748{
     749  assert(concept);
     750  assert(pattern);
     751  bool has_video_cell = false;
     752
     753  if (concept->type != PS_DATA_STRING) {
     754    psError(PS_ERR_BAD_PARAMETER_TYPE, true, "Type for %s (%x) is not string\n",
     755            concept->name, concept->type);
     756    return NULL;
     757  }
     758
     759  char *Vptr = strchr(concept->data.V,'V');
     760  if (Vptr) {
     761    has_video_cell = true;
     762  }
     763
     764  return psMetadataItemAllocBool(pattern->name, pattern->comment, has_video_cell);
     765}
     766 
     767   
    739768
    740769// BTOOLAPP
  • trunk/psModules/src/concepts/pmConceptsStandard.h

    r25930 r30049  
    136136    );
    137137
     138// Parse the CHIP.VIDEOCELL concept
     139psMetadataItem *p_pmConceptParse_VideoCell(
     140   const psMetadataItem *concept, ///< Concept to parse
     141   const psMetadataItem *pattern, ///< Pattern to use in parsing
     142   pmConceptSource source, ///< Source for concept
     143   const psMetadata *cameraFormat, ///< Camera format definition
     144   const pmFPA *fpa, ///< FPA for concept, or NULL
     145   const pmChip *chip, ///< Chip for concept, or NULL
     146   const pmCell *cell ///< Cell for concept, or NULL
     147   );
     148
    138149/// Format for the BTOOLAPP conceptn
    139150psMetadataItem *p_pmConceptParse_BTOOLAPP(
  • trunk/psModules/src/objects

    • Property svn:mergeinfo changed (with no actual effect on merging)
Note: See TracChangeset for help on using the changeset viewer.