Time sync Onboard Control MAVSDK-Python

I have a set of trajectories that my drone needs to follow, using NED position and velocity. My issue is that the onboard controller code, using MAVDK - Python, is publishing the values too early. How can I synchronize the trajectory publishing with the px4 execution?

I assume you want to read the actual position and velocity from the drone and then set the trajectory accordingly? So you would subscribe to the position and velocity using the telemetry plugin first, and then based on that do your controls. Does that make sense?