mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-12 09:27:35 +08:00
Update mag interface
This commit is contained in:
committed by
Paul Riseborough
parent
856961ba85
commit
9f0d8ed59e
@@ -15,9 +15,10 @@ Mag::~Mag()
|
||||
|
||||
void Mag::send(uint64_t time)
|
||||
{
|
||||
float mag[3];
|
||||
_mag_data.copyTo(mag);
|
||||
_ekf->setMagData(time,mag);
|
||||
magSample mag_sample;
|
||||
mag_sample.mag = _mag_data;
|
||||
mag_sample.time_us = time;
|
||||
_ekf->setMagData(mag_sample);
|
||||
}
|
||||
|
||||
void Mag::setData(const Vector3f& mag)
|
||||
|
||||
Reference in New Issue
Block a user