cacao  Release 0.1.03-dev
Compute And Control For Adaptive Optics
AOloopControl_aorun.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 "CommandLineInterface/CLIcore.h"
#include "AOloopControl/AOloopControl.h"
#include "00CORE/00CORE.h"
#include "info/info.h"
#include "COREMOD_memory/COREMOD_memory.h"
#include "COREMOD_arith/COREMOD_arith.h"
#include "COREMOD_iofits/COREMOD_iofits.h"
#include "AOloopControl_IOtools/AOloopControl_IOtools.h"
#include <ncurses.h>
Include dependency graph for AOloopControl_aorun.c:

Macros

#define _GNU_SOURCE
 
#define NB_AOloopcontrol   10
 

Functions

int AOloopControl_aorun_ProcessInit ()
 
int printstatus_AOloopControl_aorun (int loop)
 
int AOloopControl_aorun_GUI (long loop, double frequ)
 
int AOloopControl_aorun_FPCONF (char *fpsname, uint32_t CMDmode)
 
int AOloopControl_aorun_RUN (char *fpsname)
 Main loop function. More...
 
errno_t __attribute__ ((hot))
 Compute modes in open loop. More...
 

Variables

static int wcol
 
static int wrow
 
AOLOOPCONTROL_CONFAOconf
 CLI function for AOloopControl_setframesAve. More...
 
AOloopControl_var aoloopcontrol_var
 
static int AOloopControl_aorun_ProcessInit_Value = 0
 

Detailed Description

AO loop Control compute functions.

REAL TIME COMPUTING ROUTINES

Macro Definition Documentation

◆ _GNU_SOURCE

#define _GNU_SOURCE

◆ NB_AOloopcontrol

#define NB_AOloopcontrol   10

Function Documentation

◆ __attribute__()

errno_t __attribute__ ( (hot)  )

Compute modes in open loop.

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

◆ AOloopControl_aorun_FPCONF()

int AOloopControl_aorun_FPCONF ( char *  fpsname,
uint32_t  CMDmode 
)

◆ AOloopControl_aorun_GUI()

int AOloopControl_aorun_GUI ( long  loop,
double  frequ 
)

◆ AOloopControl_aorun_ProcessInit()

int AOloopControl_aorun_ProcessInit ( )

◆ AOloopControl_aorun_RUN()

int AOloopControl_aorun_RUN ( char *  fpsname)

Main loop function.

◆ printstatus_AOloopControl_aorun()

int printstatus_AOloopControl_aorun ( int  loop)

Variable Documentation

◆ AOconf

CLI function for AOloopControl_setframesAve.

◆ AOloopControl_aorun_ProcessInit_Value

int AOloopControl_aorun_ProcessInit_Value = 0
static

◆ aoloopcontrol_var

AOloopControl_var aoloopcontrol_var

◆ wcol

int wcol
static

◆ wrow

int wrow
static