From ef029424595eccd6ac052821f2b40d3b328ae30f Mon Sep 17 00:00:00 2001 From: Randy Mackay Date: Sat, 9 May 2020 08:05:40 +0900 Subject: [PATCH] AP_NavEKF3: writeBodyFrameOdom accepts delay --- libraries/AP_NavEKF3/AP_NavEKF3.cpp | 5 +++-- libraries/AP_NavEKF3/AP_NavEKF3.h | 3 ++- libraries/AP_NavEKF3/AP_NavEKF3_Measurements.cpp | 5 ++++- libraries/AP_NavEKF3/AP_NavEKF3_core.h | 3 ++- 4 files changed, 11 insertions(+), 5 deletions(-) diff --git a/libraries/AP_NavEKF3/AP_NavEKF3.cpp b/libraries/AP_NavEKF3/AP_NavEKF3.cpp index 62a6481fb0..c35c5f88c6 100644 --- a/libraries/AP_NavEKF3/AP_NavEKF3.cpp +++ b/libraries/AP_NavEKF3/AP_NavEKF3.cpp @@ -1355,13 +1355,14 @@ void NavEKF3::getFlowDebug(int8_t instance, float &varFlow, float &gndOffset, fl * delAng is the XYZ angular rotation measured in body frame and relative to the inertial reference at timeStamp_ms (rad) * delTime is the time interval for the measurement of delPos and delAng (sec) * timeStamp_ms is the timestamp of the last image used to calculate delPos and delAng (msec) + * delay_ms is the average delay of external nav system measurements relative to inertial measurements * posOffset is the XYZ body frame position of the camera focal point (m) */ -void NavEKF3::writeBodyFrameOdom(float quality, const Vector3f &delPos, const Vector3f &delAng, float delTime, uint32_t timeStamp_ms, const Vector3f &posOffset) +void NavEKF3::writeBodyFrameOdom(float quality, const Vector3f &delPos, const Vector3f &delAng, float delTime, uint32_t timeStamp_ms, uint16_t delay_ms, const Vector3f &posOffset) { if (core) { for (uint8_t i=0; i