Calculating the drone distance travelled withoutGPS

how I can calculating the drone distance travelled without GPS

I have PIXHAWK 2.4.8
I use python to communication with the controller
and i use dronekit library

i only have the sensors in the PIXHAWK

i work on windows 10

i need any example for my case
thanks all