Follow drone flight in real time

Hi,

I am new to using Cesium. I’ve been trying to use it to see drone flights in real time. I am interested in both seeing the drone model and the drone path at the same time. Drone position updates come every 250 ms over a websocket.

I’ve tried doing it adding it as an Entity and using a SampledPositionProperty I update every time a new position arrives. I am seeing the drone model correctly but the path is not displayed.

Following the Build a Flight Tracker – Cesium example, I’ve noticed it only works when the entity availability is set. But since I am updating it in real time, I have no way of knowing the availability in advance. From what the documentation says, I thought it should work even if availability is not set.

I’ve also tried using a different polyline entity for the path. It loads initial data correctly, but I am not able to update the polyline positions in realtime.

Can someone guide me on how to implement this?

Thanks