Skip to content

Commit

Permalink
fix adsb groundspeed
Browse files Browse the repository at this point in the history
  • Loading branch information
Sequal32 committed May 29, 2021
1 parent b978830 commit 22c815b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/adsbexchange/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ impl Into<AircraftData> for ADSBExData {
latitude: self.lat.map(|x| x as f32).unwrap_or_default(),
longitude: self.lon.map(|x| x as f32).unwrap_or_default(),
heading: self.track.map(|x| x as u32).unwrap_or_default(),
ground_speed: self.ias.map(|x| x as u32).unwrap_or_default(),
ground_speed: self.gs.map(|x| x as u32).unwrap_or_default(),
timestamp: self.time as u64,
altitude: self.alt_baro.map(|x| x as i32).unwrap_or_default(),
model: self.aircraft_type,
Expand Down

0 comments on commit 22c815b

Please sign in to comment.