From df409a2cd329a17dbc66e95d79ff4bb5afedb3fe Mon Sep 17 00:00:00 2001 From: Stanislaw Grams Date: Sun, 8 Feb 2026 21:44:38 +0100 Subject: [PATCH] [feat](trx-core): add server_latitude and server_longitude to RigState and RigSnapshot Propagate receiver location (WGS84 decimal degrees) through the state pipeline so frontends can display the server position on a map. Co-Authored-By: Claude Opus 4.6 Signed-off-by: Stanislaw Grams --- src/trx-core/src/rig/state.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/trx-core/src/rig/state.rs b/src/trx-core/src/rig/state.rs index 36069f6..0ce1a79 100644 --- a/src/trx-core/src/rig/state.rs +++ b/src/trx-core/src/rig/state.rs @@ -19,6 +19,10 @@ pub struct RigState { pub server_callsign: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub server_version: Option, + #[serde(default, skip_serializing_if = "Option::is_none")] + pub server_latitude: Option, + #[serde(default, skip_serializing_if = "Option::is_none")] + pub server_longitude: Option, } /// Mode supported by the rig. @@ -62,6 +66,8 @@ impl RigState { initialized: self.initialized, server_callsign: self.server_callsign.clone(), server_version: self.server_version.clone(), + server_latitude: self.server_latitude, + server_longitude: self.server_longitude, }) } @@ -100,4 +106,8 @@ pub struct RigSnapshot { pub server_callsign: Option, #[serde(default, skip_serializing_if = "Option::is_none")] pub server_version: Option, + #[serde(default, skip_serializing_if = "Option::is_none")] + pub server_latitude: Option, + #[serde(default, skip_serializing_if = "Option::is_none")] + pub server_longitude: Option, }