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 @@ Baro::~Baro()
void Baro::send(uint64_t time)
{
const baroSample baro_sample {_baro_data, time};
_ekf->setBaroData(baro_sample);
_ekf->setBaroData(baroSample{time, _baro_data});
}
void Baro::setData(float baro)