Px4-autopilot: SITL: Logger is missing samples of ekf2_timestamps

Created on 11 Jun 2020  路  2Comments  路  Source: PX4/PX4-Autopilot

When running SITL and adding a counter to the ekf2_timestamps topic we realized that not all the samples are logged. The logger does not report and dropouts though.
I went back to v1.9.2 and still saw the same behavior.
We are thinking that this might be the reason why replay on SITL logs is not working well.

image

bug

Most helpful comment

Yes we need to integrate the logger into the lockstep cycle to solve this cleanly.

However a quick test showed that also letting logger poll on ekf2_timestamps improves things a lot already.

All 2 comments

I think the problem is that lockstep only waits for data ready to be sent to the simulator, so the actuator_controls essentially. However, it doesn't wait until logger is done logging everything.

We could think of adding some sort of flag for logger to signal that it is done writing things to disk, so that we can continue with lockstep.

Yes we need to integrate the logger into the lockstep cycle to solve this cleanly.

However a quick test showed that also letting logger poll on ekf2_timestamps improves things a lot already.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

robin-shaun picture robin-shaun  路  4Comments

FaboNo picture FaboNo  路  5Comments

ghost picture ghost  路  4Comments

zhanghouxin07 picture zhanghouxin07  路  5Comments

JacobCrabill picture JacobCrabill  路  4Comments