-
Notifications
You must be signed in to change notification settings - Fork 2
/
PMU_UFSC_1.h
71 lines (55 loc) · 2.47 KB
/
PMU_UFSC_1.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
70
71
//PMU da UFSC 1
/* PMU Gains */
/* Defines for normalized harmonics (127V or 220V) */
#if NOMINAL_VOLTAGE == 127
#define NORM_GAIN_127V_R (float)3.047991605
#define NORM_GAIN_127V_S (float)3.067817502
#define NORM_GAIN_127V_T (float)3.057752763
#endif
#if NOMINAL_VOLTAGE == 220
#define NORM_GAIN_220V_R (float)1.759522427
#define NORM_GAIN_220V_S (float)1.770967376
#define NORM_GAIN_220V_T (float)1.765157277
#endif
/* Defines for the magnitude of fundamental phases */
#define MAG_GAIN_R (float)42.5038
#define MAG_GAIN_S (float)42.1823
#define MAG_GAIN_T (float)42.5782
/* Defines for the fit curve of the magnitude of fundamental R */
#define FIT_MAG_GAIN_A_R (float)-0.0104230472
#define FIT_MAG_GAIN_B_R (float)6.4799561727
#define FIT_MAG_GAIN_C_R (float)0.0058096119
#define FIT_MAG_GAIN_D_R (float)0.0225779260
/* Defines for the fit curve of the magnitude of fundamental S */
#define FIT_MAG_GAIN_A_S (float)-0.0094105471
#define FIT_MAG_GAIN_B_S (float)6.5295808671
#define FIT_MAG_GAIN_C_S (float)0.0517533485
#define FIT_MAG_GAIN_D_S (float)0.0122170154
/* Defines for the fit curve of the magnitude of fundamental T */
#define FIT_MAG_GAIN_A_T (float)-0.0038224285
#define FIT_MAG_GAIN_B_T (float)6.4664725524
#define FIT_MAG_GAIN_C_T (float)0.0200856470
#define FIT_MAG_GAIN_D_T (float)0.0147323440
/* Defines for the fit curve of the phase of fundamental R */
#define FIT_PHASE_GAIN_A_R (float)61.3200434278
#define FIT_PHASE_GAIN_B_R (float)0.5306019593
#define FIT_PHASE_GAIN_C_R (float)0.0359982043
/* Defines for the fit curve of the phase of fundamental S */
#define FIT_PHASE_GAIN_A_S (float)61.1903481072
#define FIT_PHASE_GAIN_B_S (float)0.6895729716
#define FIT_PHASE_GAIN_C_S (float)0.0945399081
#define FIT_PHASE_GAIN_D_S (float)0.0047453058
/* Defines for the fit curve of the phase of fundamental T */
#define FIT_PHASE_GAIN_A_T (float)60.7272664968
#define FIT_PHASE_GAIN_B_T (float)0.3813063315
#define FIT_PHASE_GAIN_C_T (float)0.0388992543
#define FIT_PHASE_GAIN_D_T (float)0.0013921956
/* Defines for the fit curve of the frequency of fundamental R */
#define FIT_FREQ_GAIN_A_R (float)-2.7531705491
#define FIT_FREQ_GAIN_B_R (float)0.0512209453
/* Defines for the fit curve of the frequency of fundamental S */
#define FIT_FREQ_GAIN_A_S (float)-2.3592039210
#define FIT_FREQ_GAIN_B_S (float)0.0477269049
/* Defines for the fit curve of the frequency of fundamental T */
#define FIT_FREQ_GAIN_A_T (float)-2.6454608536
#define FIT_FREQ_GAIN_B_T (float)0.0538034619