Calculation of minimum speed to stick to the wall of a ride