Measuring velocity with a Mega and MPU 6050

im using a arduino mega board n a mpu6050 can anyone suggest a soild program for me to measure velocity using mpu 6050

Split from a totally unrelated topic

@San_j - do nit hijack topics with unrelated questions

You cannot measure velocity using an accelerometer or IMU.

You can estimate a change in velocity, in some special circumstances, but even that is usually very inaccurate.