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:
Daniel Agar
2020-12-03 20:48:51 -05:00
committed by GitHub
parent 67f13f7ede
commit 03cfcb903e
12 changed files with 85 additions and 111 deletions
+1 -2
View File
@@ -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)