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