update compass every 3 sec