Provide normalized three-axis magnetic-field measurements. More...
Public Member Functions | |
| bool | is_connected (self) |
| Return whether the source is connected and ready. | |
| None | connect (self) |
| Connect to the magnetometer source. | |
| None | disconnect (self) |
| Disconnect from the magnetometer source. | |
| MagnetometerSample | read_magnetometer (self) |
| Read magnetic field strength in microteslas along each device axis. | |
Provide normalized three-axis magnetic-field measurements.
| bool navigation.magnetometer_source_if.MagnetometerSourceIf.is_connected | ( | self | ) |
Return whether the source is connected and ready.
Reimplemented in navigation.android_magnetometer_adapter.AndroidMagnetometerAdapter.
| MagnetometerSample navigation.magnetometer_source_if.MagnetometerSourceIf.read_magnetometer | ( | self | ) |
Read magnetic field strength in microteslas along each device axis.
Reimplemented in navigation.android_magnetometer_adapter.AndroidMagnetometerAdapter.