cargo update
This commit is contained in:
parent
c409eca81e
commit
9b6b5a8af0
File diff suppressed because it is too large
Load Diff
|
@ -7,4 +7,4 @@ edition = "2021"
|
||||||
[dependencies]
|
[dependencies]
|
||||||
futures = "0.3"
|
futures = "0.3"
|
||||||
tokio = { version = "1", features = ["full"] }
|
tokio = { version = "1", features = ["full"] }
|
||||||
adsb_deku = "0.5"
|
adsb_deku = "0.6"
|
||||||
|
|
|
@ -14,7 +14,7 @@ pub struct Entry {
|
||||||
cpr1: Option<adsb_deku::Altitude>,
|
cpr1: Option<adsb_deku::Altitude>,
|
||||||
cpr2: Option<adsb_deku::Altitude>,
|
cpr2: Option<adsb_deku::Altitude>,
|
||||||
position: Option<adsb_deku::cpr::Position>,
|
position: Option<adsb_deku::cpr::Position>,
|
||||||
pub heading: Option<f64>,
|
pub heading: Option<f32>,
|
||||||
pub speed: Option<f64>,
|
pub speed: Option<f64>,
|
||||||
pub vertical_rate: Option<i16>,
|
pub vertical_rate: Option<i16>,
|
||||||
last_update: Option<Instant>,
|
last_update: Option<Instant>,
|
||||||
|
@ -34,7 +34,7 @@ impl Entry {
|
||||||
match kind {
|
match kind {
|
||||||
adsb_deku::adsb::ME::AirbornePositionBaroAltitude(altitude) |
|
adsb_deku::adsb::ME::AirbornePositionBaroAltitude(altitude) |
|
||||||
adsb_deku::adsb::ME::AirbornePositionGNSSAltitude(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 self.cpr2.map_or(false, |cpr2| cpr2.odd_flag != altitude.odd_flag) {
|
||||||
// if last altitude had a different odd flag,
|
// if last altitude had a different odd flag,
|
||||||
// shift the entries
|
// shift the entries
|
||||||
|
|
|
@ -12,5 +12,5 @@ geo = "0.22"
|
||||||
csv = "1.1"
|
csv = "1.1"
|
||||||
tokio-xmpp = "*"
|
tokio-xmpp = "*"
|
||||||
xmpp-parsers = "*"
|
xmpp-parsers = "*"
|
||||||
adsb_deku = "0.5"
|
adsb_deku = "0.6"
|
||||||
beast = { path = "../beast" }
|
beast = { path = "../beast" }
|
||||||
|
|
|
@ -10,4 +10,4 @@ beast = { path = "../beast" }
|
||||||
warp = "0.3"
|
warp = "0.3"
|
||||||
serde = { version = "1", features = ["derive"] }
|
serde = { version = "1", features = ["derive"] }
|
||||||
serde_json = "1"
|
serde_json = "1"
|
||||||
adsb_deku = "0.5"
|
adsb_deku = "0.6"
|
||||||
|
|
Loading…
Reference in New Issue