use shared pointer

This commit is contained in:
kamilritz
2019-12-16 09:04:35 +01:00
committed by Mathieu Bresciani
parent 00cd720a66
commit f13f2f8452
14 changed files with 78 additions and 49 deletions
+8 -3
View File
@@ -1,9 +1,11 @@
#include "Baro.h"
#include "baro.h"
namespace sensor_simulator::sensor
namespace sensor_simulator
{
namespace sensor
{
Baro::Baro(Ekf* ekf):Sensor(ekf)
Baro::Baro(std::shared_ptr<Ekf> ekf):Sensor(ekf)
{
}
@@ -21,3 +23,6 @@ void Baro::setData(float baro)
{
_baro_data = baro;
}
} // namespace sensor
} // namespace sensor_simulator