I\'m wondering if I can use (linear) accelerometer and compass to calculate velocity without using location services. I want to do that by calculating acceleration component
Probably not, because if your moving with slow constant speed, I don't think that accelerometer detects anything.