Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- 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

### Added
Expand Down
11 changes: 6 additions & 5 deletions src/authentication.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")),
Expand Down
2 changes: 1 addition & 1 deletion src/rpc/atmosphere.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
1 change: 1 addition & 0 deletions src/rpc/custom.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<custom::v0::GetMagneticDeclinationRequest>,
Expand Down
Loading