MAOS
Multithreaded Adaptive Optics Simulator
Loading...
Searching...
No Matches
petal_utils.h File Reference

Functions

void petal_setup_wrap (recon_t *recon, const parms_t *parms, const powfs_t *powfs)
void petal_recon (sim_t *simu)

Detailed Description

Contains utility routines to for petal mode reconstruction. Actual implementation is in lib/petal.c

Function Documentation

◆ petal_setup_wrap()

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

Petaling mode control

◆ petal_recon()

void petal_recon ( sim_t * simu)

Reconstruct petal modes. The function is now split into three parts: Part 1: accumuate i0 at every time step and set do_petal if a reconstruction is due. Part 2: launch a new thread to do the petal reconstruction. Part 3: join the thread and do post-processing to update the reference vectors.