Defend
7 years ago
5 changed files with 35 additions and 17 deletions
@ -0,0 +1,8 @@ |
|||||
|
#include "Graph.h" |
||||
|
|
||||
|
Graph::Graph (int graphSize, int graphUpdateRate) { |
||||
|
this->graphSize = graphSize; |
||||
|
this->graphUpdateRate = graphUpdateRate; // Раз в секунду
|
||||
|
graphArray = new int[graphSize]; |
||||
|
graphCounter = 0; |
||||
|
} |
@ -0,0 +1,9 @@ |
|||||
|
class Graph { |
||||
|
public: |
||||
|
int graphSize; |
||||
|
int graphUpdateRate; |
||||
|
int * graphArray; |
||||
|
int graphCounter; |
||||
|
|
||||
|
Graph (int graphSize, int graphUpdateRate); |
||||
|
}; |
@ -0,0 +1,6 @@ |
|||||
|
#include <Sensor.h> |
||||
|
|
||||
|
Sensor::Sensor() { |
||||
|
lastUpdate = 0; |
||||
|
lastValue = 0; |
||||
|
} |
@ -0,0 +1,7 @@ |
|||||
|
class Sensor { |
||||
|
public: |
||||
|
int lastValue; |
||||
|
long int lastUpdate; |
||||
|
|
||||
|
Sensor(); |
||||
|
}; |
Loading…
Reference in new issue