cacao  Release 0.1.03-dev
Compute And Control For Adaptive Optics
AOloopControl_ProcessModeCoefficients.c File Reference

AO loop Control compute functions. More...

#include <time.h>
#include <string.h>
#include <sched.h>
#include <gsl/gsl_math.h>
#include <gsl/gsl_blas.h>
#include <pthread.h>
#include "ImageStreamIO/ImageStreamIO.h"
#include "CommandLineInterface/CLIcore.h"
#include "AOloopControl/AOloopControl.h"
#include "00CORE/00CORE.h"
#include "info/info.h"
#include "COREMOD_memory/COREMOD_memory.h"
#include "COREMOD_iofits/COREMOD_iofits.h"
#include "AOloopControl_IOtools/AOloopControl_IOtools.h"
Include dependency graph for AOloopControl_ProcessModeCoefficients.c:

Macros

#define _GNU_SOURCE
 

Functions

imageID __attribute__ ((hot))
 Compute modes in open loop. More...
 

Variables

AOLOOPCONTROL_CONFAOconf
 CLI function for AOloopControl_setframesAve. More...
 
AOloopControl_var aoloopcontrol_var
 

Detailed Description

AO loop Control compute functions.

REAL TIME COMPUTING ROUTINES

Bug:
No known bugs.

Macro Definition Documentation

◆ _GNU_SOURCE

#define _GNU_SOURCE

Function Documentation

◆ __attribute__()

imageID __attribute__ ( (hot)  )

Compute modes in open loop.

Purpose

Main computation routine.
AOcompute() is called inside the aorun loop.
AOcompute main steps are:

  • Read WFS image (call to Read_cam_frame())
  • Process WFS frame
  • Multiply by control matrix

Arguments

Parameters
[in]paramnamelong number of the loop
[in]paramnameint normalize

Purpose

Main AO loop function

Overview

Runs the AO loop
Calls AOcompute(), which computes the correction to the applied.
Then, the correction is applied by calling set_DM_modes() if modal correction, or by direct write to the DM otherwise.

Details

STEP 1: Setting up

Load arrays

Variable Documentation

◆ AOconf

CLI function for AOloopControl_setframesAve.

◆ aoloopcontrol_var

AOloopControl_var aoloopcontrol_var