code: def get_compass(self):
          
  
          self.set_imu_config(True, False, False)
          orientation = self.get_orientation_degrees()
          if type(orientation) is dict and 'yaw' in orientation.keys():
              return orientation['yaw']
          else:
              return None
docs: Gets the direction of North from the magnetometer in degrees