From de437b3ad304935bfaa54e631be6855bdc2c1dda Mon Sep 17 00:00:00 2001 From: mobot-gh Date: Sun, 3 May 2026 22:21:42 +0100 Subject: [PATCH 1/4] fix argument order for atan2 in atmosphere.rs --- src/rpc/atmosphere.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rpc/atmosphere.rs b/src/rpc/atmosphere.rs index d50433c0..23406ad8 100644 --- a/src/rpc/atmosphere.rs +++ b/src/rpc/atmosphere.rs @@ -39,7 +39,7 @@ impl AtmosphereService for MissionRpc { } fn get_wind_heading_and_strength(v: &common::v0::Vector) -> (f32, f32) { - let mut heading = v.x.atan2(v.z).to_degrees(); + let mut heading = v.z.atan2(v.x).to_degrees(); if heading < 0.0 { heading += 360.0; } From 3fe5a0a616923aeef64c48e61d3a7be2dfdfd70a Mon Sep 17 00:00:00 2001 From: mobot-gh Date: Tue, 5 May 2026 13:22:42 +0100 Subject: [PATCH 2/4] adjustments for linter --- src/authentication.rs | 11 ++++++----- src/rpc/custom.rs | 1 + 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/authentication.rs b/src/authentication.rs index 5c37db9d..66299b4b 100644 --- a/src/authentication.rs +++ b/src/authentication.rs @@ -26,11 +26,12 @@ impl RequestInterceptor for AuthInterceptor { } } - if client.is_some() { - log::debug!("Authenticated client: {}", client.unwrap()); - Ok(req) - } else { - Err(Status::unauthenticated("Unauthenticated")) + match client { + Some(client_name) => { + log::debug!("Authenticated client: {}", client_name); + Ok(req) + } + _ => Err(Status::unauthenticated("Unauthenticated")), } } _ => Err(Status::unauthenticated("Unauthenticated")), diff --git a/src/rpc/custom.rs b/src/rpc/custom.rs index 336c3a61..1acfe7a2 100644 --- a/src/rpc/custom.rs +++ b/src/rpc/custom.rs @@ -52,6 +52,7 @@ impl CustomService for MissionRpc { Ok(Response::new(custom::v0::EvalResponse { json })) } + #[allow(clippy::result_large_err)] async fn get_magnetic_declination( &self, request: Request, From dc0bcd48b86aa53f9d424525d400b5bbeba652db Mon Sep 17 00:00:00 2001 From: mobot-gh Date: Fri, 15 May 2026 12:26:52 +0100 Subject: [PATCH 3/4] add entry for CHANGELOG.md --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index be50302b..7b52ea59 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Request uses `dcs.common.v0.ObjectCategory[]` and `SearchVolume` (with `InputPosition` for geo points). - Response returns `dcs.common.v0.Target[]` for consistent object union across services. - Lua implementation unwraps grpcui oneof wrapper (`volume.shape`) and supports both wrapped and flattened shapes. +- Fixed output of `AtmosphereService.GetWind` to match Mission Editor settings. ## [0.8.1] 2024-11-05 From 98472fbfd9a7bf92c4f35bf286cd35315f9a7c3b Mon Sep 17 00:00:00 2001 From: mobot-gh Date: Fri, 15 May 2026 12:35:57 +0100 Subject: [PATCH 4/4] fixed entry for CHANGELOG.md --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7b52ea59..ebdb9893 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Request uses `dcs.common.v0.ObjectCategory[]` and `SearchVolume` (with `InputPosition` for geo points). - Response returns `dcs.common.v0.Target[]` for consistent object union across services. - Lua implementation unwraps grpcui oneof wrapper (`volume.shape`) and supports both wrapped and flattened shapes. + +### Fixed - Fixed output of `AtmosphereService.GetWind` to match Mission Editor settings. ## [0.8.1] 2024-11-05