![]() |
cacao
Release 0.1.03-dev
Compute And Control For Adaptive Optics
|
Functions | |
int_fast8_t | AOloopControl_loadconfigure_cli () |
Load / Setup configuration. More... | |
errno_t | AOloopControl_loadconfigure (long loop, int mode, int level) |
Load / Setup configuration. More... | |
AOloopControl - 1. INITIALIZATION, configurations | |
Allocate memory, import/export configurations AOloopControl_loadconfigure.c - AOloopControl_initmem.c | |
errno_t | AOloopControl_InitializeMemory (int mode) |
Initialize memory - function called within C code only (no CLI call) More... | |
errno_t AOloopControl_InitializeMemory | ( | int | mode | ) |
Initialize memory - function called within C code only (no CLI call)
Initialize memory of the loop
[in] | mode | int
|
errno_t AOloopControl_loadconfigure | ( | long | loop, |
int | mode, | ||
int | level | ||
) |
Load / Setup configuration.
Load configuation parameters from disk - AOloopControl_loadconfigure.c.
load / setup configuration - amazingly loooong function, I am proud of you Boss !
[in] | loop | INT Loop number |
[in] | mode | INT
|
[in] | level | INT
|
By default, LOG is enabled
Note: these streams MUST exist
The AOloopControl_xDloadcreate_shmim functions are used, and follows these rules:
If file already loaded, use it (we assume it's already been properly loaded)
If not, attempt to read it from shared memory
If not available in shared memory, create it in shared memory
if "fname" exists, attempt to load it into the shared memory image
Stream names are fixed:
AOconf[loop].DMctrl.dmCname : DM control channel
Here the DM size is read -> Oconf[loop].DMctrl.sizexDM, AOconf[loop].DMctrl.sizeyDM
Connect to DM modes shared mem continue if not successful
Load AOconf[loop].AOpmodecoeffs.DMmodesname
if already exists in local memory, trust it and adopt it
if not, load from ./conf/shmim.DMmodes.fits
int_fast8_t AOloopControl_loadconfigure_cli | ( | ) |
Load / Setup configuration.
load / setup configuration - amazingly loooong function, I am proud of you Boss !
[in] | loop | INT Loop number |
[in] | mode | INT
|
[in] | level | INT
|