Adapt Android device-frame magnetic field to the ORC vehicle frame. 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. | |
Adapt Android device-frame magnetic field to the ORC vehicle frame.
The default phone mount is portrait and screen-up with the top of the phone pointing toward the vehicle front. Android +X points toward the phone's right edge, +Y toward its top, and +Z out of the screen. The ORC vehicle frame is right-handed with +X forward, +Y left, and +Z up.
| bool navigation.android_magnetometer_adapter.AndroidMagnetometerAdapter.is_connected | ( | self | ) |
Return whether the source is connected and ready.
Reimplemented from navigation.magnetometer_source_if.MagnetometerSourceIf.
| MagnetometerSample navigation.android_magnetometer_adapter.AndroidMagnetometerAdapter.read_magnetometer | ( | self | ) |
Read magnetic field strength in microteslas along each device axis.
Reimplemented from navigation.magnetometer_source_if.MagnetometerSourceIf.