diff --git a/src/structs.rs b/src/structs.rs index 725434c..30a4435 100644 --- a/src/structs.rs +++ b/src/structs.rs @@ -3,9 +3,9 @@ use serde::{Deserialize, Serialize}; #[derive(Debug, Serialize, Deserialize, Clone)] pub struct LocationPayload { - pub latitude: f32, - pub longitude: f32, - pub altitude: f32, + pub latitude: f64, + pub longitude: f64, + pub altitude: f64, pub bearing: f32, } @@ -27,7 +27,7 @@ impl IntoMessage for LocationPayload { impl FromArma for LocationPayload { fn from_arma(data: String) -> Result { - let (latitude, longitude, altitude, bearing) = <(f32, f32, f32, f32)>::from_arma(data)?; + let (latitude, longitude, altitude, bearing) = <(f64, f64, f64, f32)>::from_arma(data)?; Ok(Self { latitude, longitude,