The main challenge for many applications is to define a proper heading. In order to create a cost effective solution the magnetic field is used as compass. As this can be disturbed often, there are algorithms to cope with this potential problem explained on this slide.