16
16
//! # References
17
17
//! * IS-GPS-200H, Section 20.3.3.5.2.5 and Figure 20-4
18
18
19
- use crate :: { coords :: ECEF , navmeas :: NavigationMeasurement , time:: GpsTime } ;
19
+ use crate :: time:: GpsTime ;
20
20
use std:: error:: Error ;
21
21
use std:: fmt:: { Display , Formatter } ;
22
22
@@ -37,10 +37,6 @@ impl Display for IonoDecodeFailure {
37
37
impl Error for IonoDecodeFailure { }
38
38
39
39
impl Ionosphere {
40
- fn as_ptr ( & self ) -> * const swiftnav_sys:: ionosphere_t {
41
- & self . 0
42
- }
43
-
44
40
/// Construct an ionosphere model from already decoded parameters
45
41
#[ allow( clippy:: too_many_arguments) ]
46
42
pub fn new (
@@ -110,19 +106,6 @@ impl Ionosphere {
110
106
pub fn calc_delay ( & self , t : & GpsTime , lat_u : f64 , lon_u : f64 , a : f64 , e : f64 ) -> f64 {
111
107
unsafe { swiftnav_sys:: calc_ionosphere ( t. c_ptr ( ) , lat_u, lon_u, a, e, & self . 0 ) }
112
108
}
113
-
114
- /// Apply ionosphere corrections to a set of measurements
115
- pub fn correct_measurements ( & self , pos : ECEF , measurements : & mut [ NavigationMeasurement ] ) {
116
- assert ! ( measurements. len( ) <= std:: u8 :: MAX as usize ) ;
117
- unsafe {
118
- swiftnav_sys:: correct_iono (
119
- pos. as_single_ptr ( ) ,
120
- self . as_ptr ( ) ,
121
- measurements. len ( ) as u8 ,
122
- measurements. as_mut_ptr ( ) as * mut swiftnav_sys:: navigation_measurement_t ,
123
- ) ;
124
- }
125
- }
126
109
}
127
110
128
111
#[ cfg( test) ]
0 commit comments