IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 16, 2009, 6:35:31 PM (17 years ago)
Author:
watersc1
Message:

changes to support new burntool_state

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/concepts/pmConceptsStandard.c

    r25134 r25425  
    160160    assert(concept);
    161161    assert(pattern);
    162 
    163162    double value = NAN;
    164163    switch (concept->type) {
     
    632631    return psMetadataItemAllocS32(pattern->name, pattern->comment, binning);
    633632}
     633
     634// BTOOLAPP
     635psMetadataItem *p_pmConceptParse_BTOOLAPP(const psMetadataItem *concept,
     636                                          const psMetadataItem *pattern,
     637                                          pmConceptSource source,
     638                                          const psMetadata *cameraFormat,
     639                                          const pmFPA *fpa,
     640                                          const pmChip *chip,
     641                                          const pmCell *cell)
     642{
     643  assert(concept);
     644  assert(pattern);
     645
     646  int bt_status = 0;
     647
     648  if (concept->type != PS_DATA_BOOL) {
     649    psError(PS_ERR_BAD_PARAMETER_TYPE, true, "Type for %s (%x) is not BOOL\n",
     650            concept->name, concept->type);
     651    return NULL;
     652  }
     653
     654  if (concept->data.B == true) {
     655    bt_status = -2;
     656  }
     657  else if (concept->data.B == false) {
     658    bt_status = 1 ;
     659  }
     660 
     661  return psMetadataItemAllocS32(concept->name, concept->comment, bt_status);
     662
    634663
    635664// Get the current value of a concept
Note: See TracChangeset for help on using the changeset viewer.