summaryrefslogtreecommitdiff
path: root/src/sensor/calibration.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/sensor/calibration.hpp')
-rw-r--r--src/sensor/calibration.hpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/sensor/calibration.hpp b/src/sensor/calibration.hpp
index 17f8fa9..c85d336 100644
--- a/src/sensor/calibration.hpp
+++ b/src/sensor/calibration.hpp
@@ -1,5 +1,6 @@
#pragma once
+#include "common/memory/shared_ptr.hpp"
#include "sensor/sensor.hpp"
#include "serial.hpp"
@@ -51,7 +52,8 @@ public:
* @param sensor A sensor to calibrate
* @param sout A Serial output stream
*/
- SensorCalibrator(Sensor &sensor, SerialStream sout);
+ SensorCalibrator(common::SharedPtr<Sensor> sensor,
+ common::SharedPtr<SerialStream> sout);
/**
* Calibrates the sensor.
@@ -69,7 +71,6 @@ private:
static void _adjustValues(SensorCalibratorValues &values);
static bool _isValuesInRange(const SensorCalibratorValues &values);
- Sensor &_sensor;
-
- SerialStream _sout;
+ common::SharedPtr<Sensor> _sensor;
+ common::SharedPtr<SerialStream> _sout;
};