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
+3 -3
View File
@@ -1,13 +1,13 @@
#include "SensorSimulator.h"
#include "sensor_simulator.h"
SensorSimulator::SensorSimulator(Ekf* ekf):
SensorSimulator::SensorSimulator(std::shared_ptr<Ekf> ekf):
_ekf{ekf},
_imu{ekf},
_mag{ekf},
_baro{ekf},
_gps{ekf}
{
_ekf = ekf;
// set default sensor rate in Hz
_imu.setRate(250);