Commit 18e7d3da authored by Carla Guillen Carias's avatar Carla Guillen Carias
Browse files

Adding severity value

parent 5c22da7a
......@@ -20,7 +20,7 @@ public:
FREQUENCY
};
public:
SMUCSensorBase(const std::string& name): SensorBase(name), _scaling_factor(1){}
SMUCSensorBase(const std::string& name): SensorBase(name), _scaling_factor(1), _position(0), _severity(-1){}
virtual ~SMUCSensorBase(){}
unsigned int getScalingFactor() const {
......@@ -39,10 +39,14 @@ public:
_position = position;
}
void setSeverity(float severity){
_severity = severity;
}
private:
unsigned int _position;
unsigned int _scaling_factor;
float _severity;
};
using SMUCNGPtr = std::shared_ptr<SMUCSensorBase>;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment