Repository navigation
Expand file tree
/
Copy pathenergyparam.cpp
More file actions
60 lines (53 loc) · 1.57 KB
/
Copy pathenergyparam.cpp
File metadata and controls
60 lines (53 loc) · 1.57 KB
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
#include "energyparam.h"
EnergyParam::EnergyParam()
{
this->voltage_a =0;
this->voltage_b = 0;
this->voltage_c = 0;
this->voltage_ab =0;
this->voltage_bc = 0;
this->voltage_ca = 0;
this->current_a = 0;
this->current_b = 0;
this->current_c = 0;
this->power_factor = 0;
this->frequency = 0;
this->active_power = 0;
this->reactive_power = 0;
this->apparent_power = 0;
this->env_temp = 0;
this->env_humidity = 0;
this->air_temp = 0;
this->air_pressure = 0;
this->flow_content = 0;
this->time = 0;
this->power = 0;
this->vsp = 0;
this->load_type = 0;
}
void EnergyParam::cpy(EnergyParam param)
{
this->voltage_a = param.voltage_a;
this->voltage_b = param.voltage_b;
this->voltage_c = param.voltage_c;
this->voltage_ab = param.voltage_ab;
this->voltage_bc = param.voltage_bc;
this->voltage_ca = param.voltage_ca;
this->current_a = param.current_a;
this->current_b = param.current_b;
this->current_c = param.current_c;
this->power_factor = param.power_factor;
this->frequency = param.frequency;
this->active_power = param.active_power;
this->reactive_power = param.reactive_power;
this->apparent_power = param.apparent_power;
this->env_temp = param.env_temp;
this->env_humidity = param.env_humidity;
this->air_temp = param.air_temp;
this->air_pressure = param.air_pressure;
this->flow_content = param.flow_content;
this->time = param.time;
this->power = param.power;
this->vsp = param.vsp;
this->load_type = param.load_type;
}