forked from cacao-org/AOloopControl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAOload.c
60 lines (53 loc) · 1.39 KB
/
AOload.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
/**
* @file AOload.c
* @brief Adaptive Optics Control loop engine
*
* AO engine uses stream data structure
*
* @author O. Guyon
* @date 24 Nov 2017 --
*
* @bug No known bugs.
*
* @see http://oguyon.github.io/AdaptiveOpticsControl/src/AOloopControl/doc/AOloopControl.html
*
* @defgroup AOloopControl_streams Image streams
* @defgroup AOloopControl_AOLOOPCONTROL_CONF AOloopControl main data structure
*
*/
/* =============================================================================================== */
/** @brief Load / Setup configuration */
/* =============================================================================================== */
/**
* ## Purpose
*
* load / setup configuration - amazingly loooong function, I am proud of you Boss !
*
* ## Arguments
*
* @param[in]
* loop INT
* Loop number
*
* @param[in]
* mode INT
* - 1 loads from ./conf/ directory to shared memory
* - 0 simply connects to shared memory
*
* @param[in]
* level INT
* - 2 zonal only
* - 10+ load all
*
*
*
* @ingroup AOloopControl_streams
*/
/** @brief CLI function for AOloopControl_loadconfigure */
int_fast8_t AOloopControl_loadconfigure_cli() {
if(CLI_checkarg(1,2)==0) {
AOloopControl_loadconfigure(data.cmdargtoken[1].val.numl, 1, 10);
return 0;
}
else return 1;
}