IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 26403


Ignore:
Timestamp:
Dec 14, 2009, 2:38:51 PM (16 years ago)
Author:
bills
Message:

get zero point from configuration

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/libdvo/src/dvo_util.c

    r26396 r26403  
    7373        exit (1);
    7474    }
    75     SetZeroPoint (25.0);
    76 
    77 #ifdef READ_CAMERA_CONFIG
     75
     76    double zero_point;
     77    ScanConfig (configData, "ZERO_PT",                "%lf", 0, &zero_point);
     78    SetZeroPoint (zero_point);
     79
     80#if (DVO_UTIL_READ_CAMERA_CONFIG)
     81    // at one point I thought reading the camera configuration might be useful
     82    // but we didn't need it
    7883    if (!ScanConfig (configData, "CAMERA_CONFIG", "%s", 0, dvoConfig->cameraConfig)) {
    7984        fprintf (stderr, "can't find CAMERA_CONFIG in configuration\n");
Note: See TracChangeset for help on using the changeset viewer.