[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 <noreply@anthropic.com>
Signed-off-by: Stanislaw Grams <stanislawgrams@gmail.com>
This commit is contained in:
2026-02-08 21:44:38 +01:00
parent 7828402ab6
commit df409a2cd3
+10
View File
@@ -19,6 +19,10 @@ pub struct RigState {
pub server_callsign: Option<String>,
#[serde(default, skip_serializing_if = "Option::is_none")]
pub server_version: Option<String>,
#[serde(default, skip_serializing_if = "Option::is_none")]
pub server_latitude: Option<f64>,
#[serde(default, skip_serializing_if = "Option::is_none")]
pub server_longitude: Option<f64>,
}
/// 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<String>,
#[serde(default, skip_serializing_if = "Option::is_none")]
pub server_version: Option<String>,
#[serde(default, skip_serializing_if = "Option::is_none")]
pub server_latitude: Option<f64>,
#[serde(default, skip_serializing_if = "Option::is_none")]
pub server_longitude: Option<f64>,
}