A novel curve fitting based discrete velocity estimator for high performance motion control