mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-13 12:57:35 +08:00
EKF: RingBuffer minor improvements
- allocate IMU and output buffers on construction according to defaults - determine buffer max time delay based on configuration parameters - reorder flowSample and extVisionSample to minimize padding - adjust parameter defaults to match PX4-Autopilot
This commit is contained in:
@@ -15,8 +15,7 @@ Mag::~Mag()
|
||||
|
||||
void Mag::send(uint64_t time)
|
||||
{
|
||||
const magSample mag_sample {_mag_data, time};
|
||||
_ekf->setMagData(mag_sample);
|
||||
_ekf->setMagData(magSample{time, _mag_data});
|
||||
}
|
||||
|
||||
void Mag::setData(const Vector3f& mag)
|
||||
|
||||
Reference in New Issue
Block a user