![]() |
cacao
Release 0.1.03-dev
Compute And Control For Adaptive Optics
|
Adaptive Optics Control loop engine I/O tools. More...
#include <string.h>#include <stdio.h>#include <pthread.h>#include "CommandLineInterface/CLIcore.h"#include "info/info.h"#include "AOloopControl/AOloopControl.h"#include "AOloopControl_IOtools/AOloopControl_IOtools.h"#include "COREMOD_memory/COREMOD_memory.h"#include "00CORE/00CORE.h"
Macros | |
| #define | _GNU_SOURCE |
Functions | |
| errno_t | AOloopControl_IOtools_camimage_extract2D_sharedmem_loop (const char *in_name, const char *dark_name, const char *out_name, long size_x, long size_y, long xstart, long ystart) |
| static void * | compute_function_imtotal (__attribute__((unused)) void *ptr) |
| static void * | compute_function_dark_subtract (void *ptr) |
| errno_t | AOcontrolLoop_IOtools_acquireWFSloop_FPCONF (char *fpsname, uint32_t CMDmode) |
| compute sum of image pixels More... | |
| errno_t | AOcontrolLoop_IOtools_acquireWFSloop_RUN (char *fpsname) |
| errno_t | AOcontrolLoop_IOtools_acquireWFSloop (long loop) |
| errno_t | __attribute__ ((hot)) |
| Read image from WFS camera. More... | |
Variables | |
| static sem_t | AOLCOMPUTE_TOTAL_ASYNC_sem_name |
| static long long | imtotalcnt |
| static int | AOLCOMPUTE_DARK_SUBTRACT_THREADinit = 0 |
| static int | COMPUTE_DARK_SUBTRACT_NBTHREADS = 1 |
| static sem_t | AOLCOMPUTE_DARK_SUBTRACT_sem_name [32] |
| static sem_t | AOLCOMPUTE_DARK_SUBTRACT_RESULT_sem_name [32] |
| static unsigned short * | arrayutmp |
| static signed short * | arraystmp |
| static char | Average_cam_frames_dname [200] |
| static imageID | Average_cam_frames_IDdark = -1 |
| static unsigned long | Average_cam_frames_nelem = 1 |
| static float * | arrayftmp |
| static struct timespec | tnow |
| static struct timespec | tdiff |
| static double | tdiffv |
| static long | ti |
| static int | AOLCOMPUTE_TOTAL_ASYNC_THREADinit = 0 |
| static int | AOLCOMPUTE_TOTAL_INIT = 0 |
| long | LOOPNUMBER |
| AOLOOPCONTROL_CONF * | AOconf |
| CLI function for AOloopControl_setframesAve. More... | |
| AOloopControl_var | aoloopcontrol_var |
Adaptive Optics Control loop engine I/O tools.
| #define _GNU_SOURCE |
| errno_t __attribute__ | ( | (hot) | ) |
Read image from WFS camera.
Compute modes in open loop.
Reads WFS image and performs some basic processing
Outputs are : imWFS0, which is dark-subtracted imWFS1, which is dark-subtracted and normalized, but not reference-subtracted.
supports ring buffer puts image from camera buffer aoloopcontrol_var.aoconfID_wfsim into aoloopcontrol_var.aoconfID_imWFS1 (supplied by user)
RM = 1 if response matrix
if normalize == 1, image is normalized by dividing by (total + AOconf[loop].WFSim.WFSnormfloor)*AOconf[loop].WFSim.WFSsize if PixelStreamMode = 1, read on semaphore 1, return slice index
Load arrays
| errno_t AOcontrolLoop_IOtools_acquireWFSloop | ( | long | loop | ) |
| errno_t AOcontrolLoop_IOtools_acquireWFSloop_FPCONF | ( | char * | fpsname, |
| uint32_t | CMDmode | ||
| ) |
compute sum of image pixels
Subtract dark
| errno_t AOcontrolLoop_IOtools_acquireWFSloop_RUN | ( | char * | fpsname | ) |
| errno_t AOloopControl_IOtools_camimage_extract2D_sharedmem_loop | ( | const char * | in_name, |
| const char * | dark_name, | ||
| const char * | out_name, | ||
| long | size_x, | ||
| long | size_y, | ||
| long | xstart, | ||
| long | ystart | ||
| ) |
|
static |
|
static |
| AOLOOPCONTROL_CONF* AOconf |
CLI function for AOloopControl_setframesAve.
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
| AOloopControl_var aoloopcontrol_var |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
| long LOOPNUMBER |
|
static |
|
static |
|
static |
|
static |