IMU calculating velocity

How about telling us more about the libraries you're using?

(I can write lots of code that won't give error messages or warnings, but won't do what they look like they ought to)