MAOS
Multithreaded Adaptive Optics Simulator
maos.h File Reference

Functions

void maos_setup (const parms_t *parms)
 
void maos_reset ()
 
void maos_sim ()
 
void maos_isim (int isim)
 
sim_tmaos_iseed (int iseed)
 

Detailed Description

Sets up maos simulation.

The main() is separated into main.c so that maos.c can be a part of libaos.la which is callable by MATLAB.

Function Documentation

◆ maos_setup()

void maos_setup ( const parms_t parms)

Setup system before entering simulation.

◆ maos_reset()

void maos_reset ( )

Free all allocated memory in setup_* functions. So that we keep track of all the memory allocation.

◆ maos_sim()

void maos_sim ( )

Closed loop simulation main loop.

It calls init_simu() to initialize the simulation struct, and then calls maos_isim() for each simulation time step. Arranged this way so that maos_isim() can be called from matlab.

◆ maos_isim()

void maos_isim ( int  isim)

Simulation for each time step.

Callable from matlab.

◆ maos_iseed()

sim_t* maos_iseed ( int  iseed)

Initialize the simulation runtime data struct.

+ Here is the call graph for this function: