![]() |
cacao
Release 0.1.03-dev
Compute And Control For Adaptive Optics
|
AO loop Control functions wave front sensor and deformable mirror. More...
#include <time.h>
#include <string.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_iofits/COREMOD_iofits.h"
#include "AOloopControl_IOtools/AOloopControl_IOtools.h"
Macros | |
#define | _GNU_SOURCE |
#define | NB_AOloopcontrol 10 |
Functions | |
errno_t | set_DM_modes (long loop) |
Sends modal commands to DM by matrix-vector multiplication. More... | |
errno_t | set_DM_modesRM (long loop) |
Response Matrix DM-WFS. More... | |
errno_t | AOloopControl_GPUmodecoeffs2dm_filt_loop (const int GPUMATMULTCONFindex, const char *modecoeffs_name, const char *DMmodes_name, int semTrigg, const char *out_name, int GPUindex, long loop, int offloadMode) |
Matrix multiplication on GPU to transfom modes coefficients into DM shape. More... | |
imageID | AOloopControl_dm2dm_offload (const char *streamin, const char *streamout, float twait, float offcoeff, float multcoeff) |
Mixes streamin into streamout, in order to make streamout converge to streamin. More... | |
Variables | |
static struct timespec | tnow |
static struct timespec | tdiff |
static double | tdiffv |
AOLOOPCONTROL_CONF * | AOconf |
CLI function for AOloopControl_setframesAve. More... | |
AOloopControl_var | aoloopcontrol_var |
AO loop Control functions wave front sensor and deformable mirror.
REAL TIME COMPUTING ROUTINES
#define _GNU_SOURCE |
#define NB_AOloopcontrol 10 |
imageID AOloopControl_dm2dm_offload | ( | const char * | streamin, |
const char * | streamout, | ||
float | twait, | ||
float | offcoeff, | ||
float | multcoeff | ||
) |
Mixes streamin into streamout, in order to make streamout converge to streamin.
errno_t AOloopControl_GPUmodecoeffs2dm_filt_loop | ( | const int | GPUMATMULTCONFindex, |
const char * | modecoeffs_name, | ||
const char * | DMmodes_name, | ||
int | semTrigg, | ||
const char * | out_name, | ||
int | GPUindex, | ||
long | loop, | ||
int | offloadMode | ||
) |
Matrix multiplication on GPU to transfom modes coefficients into DM shape.
Compute DM map from mode values. This is a separate process
If offloadMode = 1, apply correction to aol::_dmC
errno_t set_DM_modes | ( | long | loop | ) |
Sends modal commands to DM by matrix-vector multiplication.
Send modal commands to DM.
Converts mode coefficient to DM map by matrix-vector multiplication
Runs in CPU or GPU.
Takes mode values from aol_DMmode_cmd (ID = aoloopcontrol_var.aoconfID_cmd_modes)
[in] | paramname | long number of the loop |
errno_t set_DM_modesRM | ( | long | loop | ) |
Response Matrix DM-WFS.
Set deformable mirror modes related to the response matrix
Takes mode values from ????????,
[in] | paramname | long number of the loop |
AOLOOPCONTROL_CONF* AOconf |
CLI function for AOloopControl_setframesAve.
AOloopControl_var aoloopcontrol_var |
|
static |
|
static |
|
static |