IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 24009


Ignore:
Timestamp:
Apr 30, 2009, 10:04:00 AM (17 years ago)
Author:
Paul Price
Message:

Adding recipe values for ppSkycell.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppSkycell/src/ppSkycellCamera.c

    r23992 r24009  
    104104    }
    105105
     106    // Now the camera has been determined, we can read the recipe
     107    psMetadata *recipe = psMetadataLookupMetadata(NULL, data->config->recipes, PPSKYCELL_RECIPE); // Recipe
     108    if (!recipe) {
     109        psError(PS_ERR_UNEXPECTED_NULL, false, "Unable to find recipe %s", PPSKYCELL_RECIPE);
     110        return false;
     111    }
     112
     113    psString maskString = psMetadataLookupStr(NULL, recipe, "MASKVAL"); // Mask values
     114    data->maskVal = pmConfigMaskGet(maskString, data->config);
     115    data->bin1 = psMetadataLookupS32(NULL, recipe, "BIN1");
     116    data->bin2 = psMetadataLookupS32(NULL, recipe, "BIN2");
     117
     118    if (data->bin1 <= 0 || data->bin2 <= 0) {
     119        psError(PS_ERR_BAD_PARAMETER_VALUE, true, "Unable to find legitimate values for BIN1 and BIN2");
     120        return false;
     121    }
     122
    106123    return true;
    107124}
Note: See TracChangeset for help on using the changeset viewer.