MAOS
Multithreaded Adaptive Optics Simulator
|
Functions | |
void | maos_setup (const parms_t *parms) |
void | maos_reset () |
void | maos_sim () |
void | maos_isim (int isim) |
sim_t * | maos_iseed (int iseed) |
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.
void maos_setup | ( | const parms_t * | parms | ) |
Setup system before entering simulation.
void maos_reset | ( | ) |
Free all allocated memory in setup_* functions. So that we keep track of all the memory allocation.
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.
void maos_isim | ( | int | isim | ) |
Simulation for each time step.
Callable from matlab.
sim_t* maos_iseed | ( | int | iseed | ) |
Initialize the simulation runtime data struct.