Init compass and s2