mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-06-27 11:10:34 +08:00
use shared pointer
This commit is contained in:
committed by
Mathieu Bresciani
parent
00cd720a66
commit
f13f2f8452
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user