File tree Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -96,6 +96,7 @@ pub enum EphemerisTerms {
96
96
97
97
impl EphemerisTerms {
98
98
/// Create new keplarian ephemeris terms from already decoded data
99
+ #[ allow( clippy:: too_many_arguments) ]
99
100
pub fn new_kepler (
100
101
constellation : Constellation ,
101
102
tgd : [ f32 ; 2 ] ,
@@ -171,6 +172,7 @@ impl EphemerisTerms {
171
172
}
172
173
173
174
/// Create new GLONASS ephemeris terms from already decoded data
175
+ #[ allow( clippy:: too_many_arguments) ]
174
176
pub fn new_glo (
175
177
gamma : f64 ,
176
178
tau : f64 ,
@@ -199,6 +201,7 @@ pub struct Ephemeris(c_bindings::ephemeris_t);
199
201
200
202
impl Ephemeris {
201
203
/// Create new ephemeris from already decoded data
204
+ #[ allow( clippy:: too_many_arguments) ]
202
205
pub fn new (
203
206
sid : crate :: signal:: GnssSignal ,
204
207
toe : crate :: time:: GpsTime ,
Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ impl Ionosphere {
35
35
}
36
36
37
37
/// Construct an ionosphere model from already decoded parameters
38
+ #[ allow( clippy:: too_many_arguments) ]
38
39
pub fn new (
39
40
toa : GpsTime ,
40
41
a0 : f64 ,
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ impl NavigationMeasurement {
37
37
38
38
/// Gets the pseudorange measurement, if a valid one has been set
39
39
pub fn get_pseudorange ( & self ) -> Option < f64 > {
40
- if self . 0 . flags | NAV_MEAS_FLAG_CODE_VALID != 0 {
40
+ if self . 0 . flags & NAV_MEAS_FLAG_CODE_VALID != 0 {
41
41
Some ( self . 0 . pseudorange )
42
42
} else {
43
43
None
@@ -59,7 +59,7 @@ impl NavigationMeasurement {
59
59
60
60
/// Gets the measured doppler measurement, if a valid one has been set
61
61
pub fn get_measured_doppler ( & self ) -> Option < f64 > {
62
- if self . 0 . flags | NAV_MEAS_FLAG_MEAS_DOPPLER_VALID != 0 {
62
+ if self . 0 . flags & NAV_MEAS_FLAG_MEAS_DOPPLER_VALID != 0 {
63
63
Some ( self . 0 . measured_doppler )
64
64
} else {
65
65
None
@@ -92,7 +92,7 @@ impl NavigationMeasurement {
92
92
93
93
/// Gets the signal CN0 measurement, if a valid one has been set
94
94
pub fn get_cn0 ( & self ) -> Option < f64 > {
95
- if self . 0 . flags | NAV_MEAS_FLAG_CN0_VALID != 0 {
95
+ if self . 0 . flags & NAV_MEAS_FLAG_CN0_VALID != 0 {
96
96
Some ( self . 0 . cn0 )
97
97
} else {
98
98
None
You can’t perform that action at this time.
0 commit comments