The motej extras package will provide additional APIs for e.g. roll and distance calculation based on IR and Accelerometer data provided by motej library.