MAOS
Multithreaded Adaptive Optics Simulator
Loading...
Searching...
No Matches
recon_setup.c File Reference

Functions

void setup_recon_saneai (recon_t *recon, const parms_t *parms, const powfs_t *powfs)
void setup_recon_update_cn2 (recon_t *recon, const parms_t *parms)
void setup_recon_control (recon_t *recon, const parms_t *parms, const powfs_t *powfs)
void setup_recon_psd (recon_t *recon, const parms_t *parms)
void setup_recon_misc (recon_t *recon, const parms_t *parms, loc_t *locs, const powfs_t *powfs)
void free_recon_cxx (recon_t *recon)
void free_recon_unused (const parms_t *parms, recon_t *recon)
void free_recon (const parms_t *parms, recon_t *recon)

Detailed Description

Contains routines that setup the wavefront reconstructor and DM fitting.

Function Documentation

◆ setup_recon_saneai()

void setup_recon_saneai ( recon_t * recon,
const parms_t * parms,
const powfs_t * powfs )

Setup the matrix of the inverse of gradient measurement noise equivalent angle covariance matrix. For physical optics wfs, the NEA is computed using matched filter output. For geometric optics, the NEA is from input.

◆ setup_recon_update_cn2()

void setup_recon_update_cn2 ( recon_t * recon,
const parms_t * parms )

Update assembled tomography matrix with new L2. Called from cn2est when new profiles are available.

◆ setup_recon_control()

void setup_recon_control ( recon_t * recon,
const parms_t * parms,
const powfs_t * powfs )

Setup either the control matrix using either minimum variance reconstructor by calling setup_recon_mvr() or least square reconstructor by calling setup_recon_lsr() It can be called repeatedly to update the reconstructor when NEA updates.

The results are measurement noise dependent and may be updated during simulation.

◆ setup_recon_psd()

void setup_recon_psd ( recon_t * recon,
const parms_t * parms )

PSD computation for gain update

◆ setup_recon_misc()

void setup_recon_misc ( recon_t * recon,
const parms_t * parms,
loc_t * locs,
const powfs_t * powfs )

Reconstruction optimization background loops setup.

◆ free_recon_cxx()

void free_recon_cxx ( recon_t * recon)

Frees recon->invpsd or recon->fractal

◆ free_recon_unused()

void free_recon_unused ( const parms_t * parms,
recon_t * recon )

Free unused object in recon struct after preparation is done.

◆ free_recon()

void free_recon ( const parms_t * parms,
recon_t * recon )

Free the recon struct.