-
Notifications
You must be signed in to change notification settings - Fork 2
/
PMU_UFSC_2.h
69 lines (53 loc) · 2.37 KB
/
PMU_UFSC_2.h
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
61
62
63
64
65
66
67
68
69
//PMU da UFSC 2
/* PMU Gains */
/* Defines for normalized harmonics (127V or 220V) */
#if NOMINAL_VOLTAGE == 127
#define NORM_GAIN_127V_R (float)3.048178533
#define NORM_GAIN_127V_S (float)3.031196288
#define NORM_GAIN_127V_T (float)3.047962608
#endif
#if NOMINAL_VOLTAGE == 220
#define NORM_GAIN_220V_R (float)1.759630335
#define NORM_GAIN_220V_S (float)1.749826948
#define NORM_GAIN_220V_T (float)1.759505687
#endif
/* Defines for the magnitude of fundamental phases */
#define MAG_GAIN_R (float)42.3832
#define MAG_GAIN_S (float)42.4718
#define MAG_GAIN_T (float)42.45794
/* Defines for the fit curve of the magnitude of fundamental R */
#define FIT_MAG_GAIN_A_R (float)-0.0016362996
#define FIT_MAG_GAIN_B_R (float)6.4330443785
#define FIT_MAG_GAIN_C_R (float)0.0658874232
#define FIT_MAG_GAIN_D_R (float)0.0351025233
/* Defines for the fit curve of the magnitude of fundamental S */
#define FIT_MAG_GAIN_A_S (float)0.0009628812
#define FIT_MAG_GAIN_B_S (float)6.3757106266
#define FIT_MAG_GAIN_C_S (float)0.0686457110
#define FIT_MAG_GAIN_D_S (float)0.0299965117
/* Defines for the fit curve of the magnitude of fundamental T */
#define FIT_MAG_GAIN_A_T (float)0.0004282697
#define FIT_MAG_GAIN_B_T (float)6.4019875313
#define FIT_MAG_GAIN_C_T (float)0.0981472053
#define FIT_MAG_GAIN_D_T (float)0.0467723654
/* Defines for the fit curve of the phase of fundamental R */
#define FIT_PHASE_GAIN_A_R (float)60.256916502
#define FIT_PHASE_GAIN_B_R (float)0.1863745932
#define FIT_PHASE_GAIN_C_R (float)0.0076768782
/* Defines for the fit curve of the phase of fundamental S */
#define FIT_PHASE_GAIN_A_S (float)60.273407182
#define FIT_PHASE_GAIN_B_S (float)0.2463213789
#define FIT_PHASE_GAIN_C_S (float)0.0144579474
/* Defines for the fit curve of the phase of fundamental T */
#define FIT_PHASE_GAIN_A_T (float)60.271458135
#define FIT_PHASE_GAIN_B_T (float)0.1695834628
#define FIT_PHASE_GAIN_C_T (float)0.0045740754
/* Defines for the fit curve of the frequency of fundamental R */
#define FIT_FREQ_GAIN_A_R (float)-2.5770186918
#define FIT_FREQ_GAIN_B_R (float)0.0521374904
/* Defines for the fit curve of the frequency of fundamental S */
#define FIT_FREQ_GAIN_A_S (float)-2.6741303661
#define FIT_FREQ_GAIN_B_S (float)0.0537621928
/* Defines for the fit curve of the frequency of fundamental T */
#define FIT_FREQ_GAIN_A_T (float)-2.3885333996
#define FIT_FREQ_GAIN_B_T (float)0.0485053178