Skip to content

Commit 5c26fef

Browse files
committed
cleaned up tests and doc comments
1 parent b4b075a commit 5c26fef

3 files changed

Lines changed: 228 additions & 121 deletions

File tree

core/src/earth.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ pub fn lla_to_ecef(latitude: &f64, longitude: &f64) -> Matrix3<f64> {
342342
/// let lat0 = 40.0_f64.to_radians();
343343
/// let alt = 0.0;
344344
/// // Move 100 m north and 50 m east
345-
/// let (dlat, dlon) = meters_ned_to_dlat_dlon(lat0, alt, 100.0, 50.0);
345+
/// let (dlat, dlon) = strapdown::earth::meters_ned_to_dlat_dlon(lat0, alt, 100.0, 50.0);
346346
/// println!("Δlat = {} rad, Δlon = {} rad", dlat, dlon);
347347
/// ```
348348
pub fn meters_ned_to_dlat_dlon(lat_rad: f64, alt_m: f64, d_n: f64, d_e: f64) -> (f64, f64) {
@@ -375,7 +375,7 @@ pub fn meters_ned_to_dlat_dlon(lat_rad: f64, alt_m: f64, d_n: f64, d_e: f64) ->
375375
///
376376
/// ## Example
377377
/// ```
378-
/// let d = earth::haversine_distance(
378+
/// let d = strapdown::earth::haversine_distance(
379379
/// 40.0_f64.to_radians(), -75.0_f64.to_radians(),
380380
/// 41.0_f64.to_radians(), -74.0_f64.to_radians(),
381381
/// );

core/src/filter.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,9 @@ impl MeasurementModel for RelativeAltitudeMeasurement {
215215
}
216216
}
217217
#[derive(Clone, Debug, Default)]
218-
pub struct GravityAnomalyMeasurement {}
218+
pub struct GravityAnomalyMeasurement {
219+
// Placeholder
220+
}
219221

220222
#[derive(Clone, Debug, Default)]
221223
pub struct MagneticAnomalyMeasurement {}

0 commit comments

Comments
 (0)