Comparison between two different types of instruments: an encoder and an inertial sensor device