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
+6 -3
View File
@@ -39,16 +39,18 @@
#include "sensor.h"
namespace sensor_simulator::sensor
namespace sensor_simulator
{
namespace sensor
{
class Mag: public Sensor
{
public:
Mag(Ekf* ekf);
Mag(std::shared_ptr<Ekf> ekf);
~Mag();
void setData(Vector3f mag);
void setData(const Vector3f& mag);
private:
Vector3f _mag_data;
@@ -57,4 +59,5 @@ private:
};
} // namespace sensor
} // namespace sensor_simulator::sensor