IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 4, 2009, 11:19:01 AM (17 years ago)
Author:
eugene
Message:

rename POLLLIMIT to POLL_LIMIT for legibility; add separate POLL_LIMIT_CAMERA

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTasks/camera.pro

    r25693 r26028  
    55# test for required global variables
    66check.globals
     7
     8# camera.pro should have a more restricted polling limit (to avoid stress with getstar)
     9if ($?POLL_LIMIT_CAMERA == 0) set POLL_LIMIT_CAMERA = 10
     10
     11macro set.camera.poll
     12  if ($0 != 2)
     13    echo "USAGE:set.camera.poll (value)"
     14    break
     15  end
     16 
     17  $POLL_LIMIT_CAMERA = $1
     18end
     19
     20macro get.camera.poll
     21  echo "camera poll limit: $POLL_LIMIT_CAMERA"
     22end
    723
    824book init camPendingExp
     
    7086      if ($camera_DB >= $DB:n) set camera_DB = 0
    7187    end
    72     add_poll_args run
     88    $run = $run -limit $POLL_LIMIT_CAMERA
     89    # NOTE: we do not want to overload the dvo db machine with getstar queries,
     90    # so we will limit the camera stage to a smaller number than the other stages
     91    # add_poll_args run
    7392    add_poll_labels run
    7493    command $run
Note: See TracChangeset for help on using the changeset viewer.