updated GetEncoderVelocity to support both latched velocity counter and ongoing counter