Shock vibration compensation of MEMS north finder