Added code for CMPS10 compass unit