-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #42 from Cloud-RF/add-interference-ssrf-demo
Add interference ssrf demo
- Loading branch information
Showing
45 changed files
with
4,146 additions
and
28,057 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
target/ |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
[workspace] | ||
resolver = "2" | ||
members = [ "cloudrf","openssrf", "openssrf_multisite_pipeline", "openssrf_test_xml_generator"] | ||
members = [ "cloudrf","openssrf", "openssrf_to_cloudrf", "openssrf_interference_analysis", "openssrf_multisite_pipeline", "openssrf_test_xml_generator", "openssrf_xml_merger"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,3 +12,4 @@ serde_json = "1.0.113" | |
serde_repr = "0.1.18" | ||
serde_tuple = "0.5.0" | ||
thiserror = "1.0.57" | ||
regex = "1.5.4" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
use serde::{Deserialize, Serialize}; | ||
|
||
use crate::misc::{Bounds, ColourKeyValue}; | ||
|
||
|
||
#[derive(Debug, Serialize)] | ||
pub struct InterferenceReq { | ||
#[serde(flatten)] | ||
pub signal: Signal, | ||
#[serde(flatten)] | ||
pub jamming: Jamming, | ||
pub name: String, | ||
pub colour_key: String, | ||
} | ||
|
||
impl Default for InterferenceReq { | ||
fn default() -> Self { | ||
Self { | ||
signal: Default::default(), | ||
jamming: Default::default(), | ||
name: "QRM".to_owned(), | ||
colour_key: "JS.dB".to_owned(), | ||
} | ||
} | ||
} | ||
|
||
#[derive(Debug, Serialize)] | ||
#[serde(untagged)] | ||
pub enum Signal { | ||
Network{s_network: String}, | ||
Sites{s_sites: Vec<String>}, | ||
Both{s_network: String, s_sites: Vec<String>}, | ||
} | ||
|
||
#[derive(Debug, Serialize)] | ||
#[serde(untagged)] | ||
pub enum Jamming { | ||
Network{j_network: String}, | ||
Sites{j_sites: Vec<String>}, | ||
Both{j_network: String, j_sites: Vec<String>}, | ||
} | ||
|
||
|
||
impl Default for Signal { | ||
fn default() -> Self { | ||
Self::Network{ s_network: "My_Signal_Network".to_owned()} | ||
} | ||
} | ||
|
||
impl Default for Jamming { | ||
fn default() -> Self { | ||
Self::Network{ j_network: "My_Jamming_Network".to_owned()} | ||
} | ||
} | ||
|
||
#[derive(Debug, Deserialize)] | ||
#[serde(untagged)] | ||
pub enum InterferenceRes { | ||
Error { | ||
error: String, | ||
}, | ||
Success { | ||
kmz: String, | ||
#[serde(rename = "PNG_WGS84")] | ||
png_wgs84: String, | ||
#[serde(rename = "PNG_Mercator")] | ||
png_mercator: String, | ||
bounds: Bounds, | ||
key: Vec<ColourKeyValue>, | ||
elapsed: f64, | ||
calculation_adjusted: Option<Vec<String>>, | ||
}, | ||
} |
Oops, something went wrong.