Skip to content

Commit ceeb98f

Browse files
committed
Rewrite signal module in Rust
1 parent 36c1dee commit ceeb98f

File tree

8 files changed

+1699
-1265
lines changed

8 files changed

+1699
-1265
lines changed

swiftnav/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ rustversion = "1.0"
1414
chrono = { version = "0.4", optional = true }
1515
swiftnav-sys = { version = "^0.10.0", path = "../swiftnav-sys/" }
1616
strum = { version = "0.27", features = ["derive"] }
17+
thiserror = "2.0"
1718

1819
[dev-dependencies]
1920
float_eq = "1.0.1"

swiftnav/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ pub mod edc;
6363
pub mod ephemeris;
6464
pub mod geoid;
6565
pub mod ionosphere;
66+
pub mod math;
6667
pub mod navmeas;
6768
pub mod reference_frame;
6869
pub mod signal;

swiftnav/src/math.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
pub(crate) const fn compile_time_max_u16(a: u16, b: u16) -> u16 {
2+
if b < a {
3+
a
4+
} else {
5+
b
6+
}
7+
}

swiftnav/src/signal.rs

Lines changed: 0 additions & 1265 deletions
This file was deleted.

0 commit comments

Comments
 (0)