cargo update

This commit is contained in:
Astro 2023-03-07 00:54:21 +01:00
parent c409eca81e
commit 9b6b5a8af0
5 changed files with 462 additions and 502 deletions

954
Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -7,4 +7,4 @@ edition = "2021"
[dependencies]
futures = "0.3"
tokio = { version = "1", features = ["full"] }
adsb_deku = "0.5"
adsb_deku = "0.6"

View File

@ -14,7 +14,7 @@ pub struct Entry {
cpr1: Option<adsb_deku::Altitude>,
cpr2: Option<adsb_deku::Altitude>,
position: Option<adsb_deku::cpr::Position>,
pub heading: Option<f64>,
pub heading: Option<f32>,
pub speed: Option<f64>,
pub vertical_rate: Option<i16>,
last_update: Option<Instant>,
@ -34,7 +34,7 @@ impl Entry {
match kind {
adsb_deku::adsb::ME::AirbornePositionBaroAltitude(altitude) |
adsb_deku::adsb::ME::AirbornePositionGNSSAltitude(altitude) => {
self.altitude = Some(altitude.alt);
self.altitude = altitude.alt.map(|alt| alt.into());
if self.cpr2.map_or(false, |cpr2| cpr2.odd_flag != altitude.odd_flag) {
// if last altitude had a different odd flag,
// shift the entries

View File

@ -12,5 +12,5 @@ geo = "0.22"
csv = "1.1"
tokio-xmpp = "*"
xmpp-parsers = "*"
adsb_deku = "0.5"
adsb_deku = "0.6"
beast = { path = "../beast" }

View File

@ -10,4 +10,4 @@ beast = { path = "../beast" }
warp = "0.3"
serde = { version = "1", features = ["derive"] }
serde_json = "1"
adsb_deku = "0.5"
adsb_deku = "0.6"