mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-12 06:07:34 +08:00
Change folder name
This commit is contained in:
committed by
Mathieu Bresciani
parent
b9dd1e54c5
commit
00cd720a66
@@ -0,0 +1,27 @@
|
||||
#include "Mag.h"
|
||||
|
||||
namespace sensor_simulator::sensor
|
||||
{
|
||||
|
||||
Mag::Mag(Ekf* ekf):Sensor(ekf)
|
||||
{
|
||||
}
|
||||
|
||||
Mag::~Mag()
|
||||
{
|
||||
}
|
||||
|
||||
void Mag::send(uint32_t time)
|
||||
{
|
||||
float mag[3];
|
||||
_mag_data.copyTo(mag);
|
||||
_ekf->setMagData(time,mag);
|
||||
_time_last_data_sent = time;
|
||||
}
|
||||
|
||||
void Mag::setData(Vector3f mag)
|
||||
{
|
||||
_mag_data = mag;
|
||||
}
|
||||
|
||||
} // namespace sensor_simulator::sensor
|
||||
Reference in New Issue
Block a user