-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflowstate.cpp
More file actions
67 lines (58 loc) · 1.04 KB
/
flowstate.cpp
File metadata and controls
67 lines (58 loc) · 1.04 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
60
61
62
63
64
65
66
67
#include "flowstate.hpp"
FlowState::FlowState(float pumpDutyCycle,
float fanDutyCycle,
float coolantTemp,
float ambientTemp,
float flowRate,
int fanRpm,
int pumpRpm,
time_t timestamp)
:m_pumpDutyCycle(pumpDutyCycle),
m_fanDutyCycle(fanDutyCycle),
m_coolantTemp(coolantTemp),
m_ambientTemp(ambientTemp),
m_flowRate(flowRate),
m_fanRpm(fanRpm),
m_pumpRpm(pumpRpm),
m_timestamp(timestamp)
{
}
FlowState::FlowState()
:m_pumpDutyCycle(0),
m_fanDutyCycle(0),
m_coolantTemp(0),
m_ambientTemp(0),
m_flowRate(0),
m_fanRpm(0),
m_pumpRpm(0),
m_timestamp(0)
{
}
float FlowState::pumpDutyCycle()const
{
return m_pumpDutyCycle;
}
float FlowState::fanDutyCycle()const
{
return m_fanDutyCycle;
}
float FlowState::coolantTemp()const
{
return m_coolantTemp;
}
float FlowState::ambientTemp()const
{
return m_ambientTemp;
}
int FlowState::fanRpm()const
{
return m_fanRpm;
}
int FlowState::pumpRpm()const
{
return m_pumpRpm;
}
time_t FlowState::timestamp()const
{
return m_timestamp;
}