MAOS
Multithreaded Adaptive Optics Simulator
|
Macros | |
#define | GREEN BLACK |
Functions | |
void | shwfs_gloc_gamp (loc_t **pgloc, dmat **gamp, const parms_t *parms, const aper_t *aper, int iwfsr) |
long | count_nonzero (const lmat *in) |
void | setup_recon_HXW (recon_t *recon, const parms_t *parms, mapcell *atm) |
void | setup_recon_dither_dm (recon_t *recon, const powfs_t *powfs, const parms_t *parms) |
recon_t * | setup_recon_prep (const parms_t *parms, const aper_t *aper, const powfs_t *powfs) |
void | setup_recon_prep_ga (recon_t *recon, const parms_t *parms, const aper_t *aper, const powfs_t *powfs) |
Setup grid and ray tracing operators regarding DM. This is independent of 1) WFS geometry or noise parameters 2) Tomography
void shwfs_gloc_gamp | ( | loc_t ** | pgloc, |
dmat ** | gamp, | ||
const parms_t * | parms, | ||
const aper_t * | aper, | ||
int | iwfsr | ||
) |
Create loc/amp that can be used to build GP. It has points on edge of subapertures which is different from powfs.lo. The amplitude depends on the distortion as we assume that the distortion can be extracted from dm to wfs interaction matrix calibration.
gloc and the rotated version are centered around misregx and misregy so mkamp does not use misreg. the returned gloc is defined at the WFS reference frame
Setup ray tracing operator from xloc to ploc for guide stars.
recon | |
parms | |
atm | If set, atm[].vx,vy will be used for predictive offsetting. |
Dither using command path (DM) aberration
Create reconstruction parameters that are related to the geometry only, and will not be updated when estimated WFS measurement noise changes.
This can be used to do NCPA calibration.