DIMM Camera Thread Notes

The camera thread is initiated by the server.
DimmCameraThread::run

while !terminate

  camera->getImage()

  calculate image stats (min, max, mean, median, etc.)

  if measuring
    set current time
    findStars(img)
    if 2 stars found
      calculate centers of the centroids
      calculate centers of center frame

      if guiding is enabled
        get current mount position
        if centroids are outside guide limits
          count as bad frame
        if bad frame count > 4 (minFramesToGuide)
          call mount->slew with guide correction (centerStarX-centerFrameX added to mount position, 
                                                                       centerStarY-centerFrameY added to mount position)

    pushImage to ImageHandler

    if it's been 5 secs since last calcSeeing && buffer is full
      call calculateSeeing

  ImageQueue->put(img)
  writeSingleFITS file if requested

end while

Topic revision: r1 - 22 Sep 2016, KelleeSummers
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback