Skip to content

Commit a6fea0f

Browse files
committed
Fix mag units in docs, fixes #14
1 parent cff5b06 commit a6fea0f

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

CHANGELOG.md

+7
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](http://keepachangelog.com/)
66
and this project adheres to [Semantic Versioning](http://semver.org/).
77

8+
## [v0.12.1]
9+
10+
### Fixed
11+
12+
- Fix mag measurement units in docs.
13+
14+
815
## [v0.12.0]
916

1017
### Changed

src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -696,7 +696,7 @@ impl<E, DEV> Mpu9250<DEV, Marg>
696696
}
697697

698698
/// Read and returns Magnetometer measurements scaled, adjusted for factory
699-
/// sensitivities, and converted to Teslas.
699+
/// sensitivities, and converted to microTeslas.
700700
pub fn mag(&mut self) -> Result<Vector3<f32>, E> {
701701
let buffer = self.dev.read_xyz()?;
702702
Ok(self.scale_and_correct_mag(buffer, 0))
@@ -1293,7 +1293,7 @@ pub struct MargMeasurements {
12931293
pub accel: Vector3<f32>,
12941294
/// Gyroscope measurements (rad/s)
12951295
pub gyro: Vector3<f32>,
1296-
/// Magnetometer measurements (T, teslas)
1296+
/// Magnetometer measurements (mT, micro Teslas)
12971297
pub mag: Vector3<f32>,
12981298
/// Temperature sensor measurement (C)
12991299
pub temp: f32,

0 commit comments

Comments
 (0)