RunAO

Introduction

RunAO is issued after a successful Preset in adaptive mode to acquire the reference star and start the AO loop.

Prologue

  1. If pseudo-monocular, mark passive side command as bad, to force a warning later.
  2. Return error if not authorized.
  3. Return error if a a RunAO command is already in progress.
  4. Return error if no active Preset.
  5. Return error if not in adaptive mode.

Execution

  1. Generate local rePoint flag. Note that the RunAO rePoint condition may be overridden on the IIF control GUI. The operator may elect to force telescope repointing, forbid repointing, or allow the instrument supplied flag to decide.
  2. Ignore and return warning if command is from passive side pseudo-monocular instrument.
  3. Return error if any needed subsystems are not running.
    The PCS and AOS are always needed.
    The GCS is needed for focal stations BENTGREGORIANFRONT, BENTGREGORIANARGOS, BENTGREGORIANREARFIBERFEED, and DIRECTGREGORIAN.
  4. Return success If the AO loop is already closed.
  5. Tell GCS to stop sending centroids to PCS and Zernikes to PSF.
    Return error if GCS reports failure.
  6. If rePoint flag is true, pause guiding.
    Return error if GCS reports failure.
  7. If SKIPREF is false, invoke AcquireRefAO in the AOS.
    Do not check for error.
  8. If rePoint flag is true, tell GCS that an offset has occurred.
    Return error if GCS reports failure.
  9. If rePoint flag is true, resume GCS guiding.
    Return error if GCS reports failure or if AOS reported failure in step 7.
  10. If SKIPSTART is false, invoke StartAO in the AOS.
    Return error if AOS reports failure.
    Return success.

Epilogue

  1. If step 5 succeeded and the command has failed the GCS is told to re-start sending centroids to PCS (if simplemode is MODE_GUIDE or greater) and Zernikes to PSF (if simplemode is MODE_ACTIVE).
  2. If command is error or warning, make events from CommandReturn results.

-- ChrisBiddick - 18 Nov 2011
Topic revision: r11 - 19 Apr 2017, ChrisBiddick
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