arduino pilot ground speed formula

I have an arduino pilot 2.6 on my drone.
It calculates ground speed itself, i can see the result on the screen but i need a formula for ground speed as a current and voltage, i mean i need to know what happen in background thanks for your answers.