You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

28 lines
365 B

#include "mag.h"
namespace sensor_simulator
{
namespace sensor
{
Mag::Mag(std::shared_ptr<Ekf> ekf):Sensor(ekf)
{
}
Mag::~Mag()
{
}
void Mag::send(uint64_t time)
{
const magSample mag_sample {_mag_data, time};
_ekf->setMagData(mag_sample);
}
void Mag::setData(const Vector3f& mag)
{
_mag_data = mag;
}
} // namespace sensor
} // namespace sensor_simulator