added encoder support to rmotors