A magnetometer measures magnetic fields and acts as a phone’s compass, identifying whether the device faces north, east, west, or south. In mixed-reality head tracking, sensor-fusion algorithms combine its directional reading with accelerometer and gyroscope data to estimate how the user’s head moves. The treatment defines this practical role but does not descend into the mathematics or code behind sensor fusion. section 15.2
Magnetometer
A magnetometer is a sensor that measures magnetic fields and can determine compass heading.
How Web Components in Action covers it
- How deep it goes
- Defines compass direction and sensor-fusion involvement, but defers the mathematics and implementation of sensor fusion.
- Examples
- Uses a phone in a cardboard virtual-reality viewer and compass directions as practical examples.
- What you can do after
- Evaluate how a phone contributes directional data to mixed-reality head tracking.
- How it connects
- Connects magnetometers with accelerometers, gyroscopes, sensor fusion, head tracking, and virtual reality.
This explainer was generated by Manning's knowledge graph from the text of Web Components in Action. The section links point to the parts of the book it draws on.
