-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathAOloopControl_arpf_onoff.c
56 lines (39 loc) · 1.29 KB
/
AOloopControl_arpf_onoff.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
/**
* @file AOloopControl_arpf_onoff.c
* @brief AO loop control - Predictive Filter ON/OFF through the ARPF multiplicator
*
* REAL TIME COMPUTING ROUTINES
*
*
*
* @bug No known bugs.
*
*/
#define _GNU_SOURCE
#include "CommandLineInterface/CLIcore.h"
#include "AOloopControl/AOloopControl.h"
#include "00CORE/00CORE.h"
#include "AOloopControl_acquireCalib/AOloopControl_acquireCalib.h"
#include "AOloopControl_perfTest/AOloopControl_perfTest.h"
#include "COREMOD_memory/COREMOD_memory.h"
#include "AOloopControl_perfTest/AOloopControl_perfTest.h"
// defined in AOloopControl.c
extern AOLOOPCONTROL_CONF *AOconf; // configuration - this can be an array
// defined in AOloopControl.c
extern AOloopControl_var aoloopcontrol_var;
int_fast8_t AOloopControl_ARPFon()
{
if(aoloopcontrol_var.AOloopcontrol_meminit==0)
AOloopControl_InitializeMemory(1);
AOconf[aoloopcontrol_var.LOOPNUMBER].aorun.ARPFon = 1;
AOloopControl_perfTest_showparams(aoloopcontrol_var.LOOPNUMBER);
return 0;
}
int_fast8_t AOloopControl_ARPFoff()
{
if(aoloopcontrol_var.AOloopcontrol_meminit==0)
AOloopControl_InitializeMemory(1);
AOconf[aoloopcontrol_var.LOOPNUMBER].aorun.ARPFon = 0;
AOloopControl_perfTest_showparams(aoloopcontrol_var.LOOPNUMBER);
return 0;
}