MAOS
Multithreaded Adaptive Optics Simulator
hyst.h File Reference

Functions

hyst_t * hyst_new (real hysteresis, real alpha, real stroke, long nact)
 
void hyst_reset (hyst_t *hyst)
 
void hyst_free (hyst_t *in)
 
void hyst_dmat (hyst_t *hyst, dmat *dmreal, const dmat *dmcmd)
 
void hyst_dcell (hyst_t **hyst, dcell *dmreal, const dcell *dmcmd)
 
dmathyst_test (real hysteresis, real hyst_alpha, real hyst_stroke, const dmat *dmcmd)
 

Detailed Description

Routines for hysteresis modeling

Function Documentation

◆ hyst_new()

hyst_t* hyst_new ( real  hysteresis,
real  alpha,
real  stroke,
long  nact 
)

Hysteresis modeling. Create the hysteresis model. It assumes that the hysteresis is measured with a stroke.

Parameters
hysteresisThe ratio of the maximum difference of ascending/descending curve over 2*stroke.
alphaThe alpha parameter
strokeThe DM command is from -stroke to stroke
nactNumber of actuators

◆ hyst_reset()

void hyst_reset ( hyst_t *  hyst)

Reset hysteresis state

◆ hyst_free()

void hyst_free ( hyst_t *  hyst)

Free hysteresis model.

◆ hyst_dmat()

void hyst_dmat ( hyst_t *  hyst,
dmat dmreal,
const dmat dmcmd 
)

Apply hysteresis to DM vector. dmreal and dmcmd may be the same

◆ hyst_dcell()

void hyst_dcell ( hyst_t **  hyst,
dcell dmreal,
const dcell dmcmd 
)

Apply hysteresis to set of DM vectors

◆ hyst_test()

dmat* hyst_test ( real  hysteresis,
real  hyst_alpha,
real  hyst_stroke,
const dmat dmcmd 
)

Test hysteresis model. Dmcmd has dimensions of nact*ntime