Integer overflow in differential_drive wheel encoders?
Hi,
I'm reading a sensored brushless motor's tri-phase hall encoders in an effort to get odometry on my robot.
I get six increments for one motor turn. The motor runs at something like 17000rpm at max speed. If I track the encoders with an std_msgs/Int16 message, as expected from the differential_drive package, I will get an integer overflow after only about 300 ms...
I'll be using rosserial_arduino on an Arduino Micro with interrupt driven software.
Is there an alternative package I could use? Maybe something that tracks the relative change of the encoder counter instead of its absolute value?
Cheers
Laurenz