add compass support

Change-Id: I034cb8c9bb86340c433c5b94b3c459e3305433de