Skip to main content

TrackingLoopScenario

Struct TrackingLoopScenario 

Source
pub struct TrackingLoopScenario {
Show 29 fields pub pll_bandwidth_hz: f64, pub dll_bandwidth_hz: f64, pub predetection_integration_s: f64, pub correlator_spacing_chips: f64, pub carrier_allowance_deg: f64, pub code_allowance_chips: Option<f64>, pub pullin_bandwidth_ratio: f64, pub drop_confirm_epochs: usize, pub relock_confirm_epochs: usize, pub doppler_rate_hz_per_s: f64, pub code_slew_chips_per_s: f64, pub cn0_high_dbhz: f64, pub cn0_low_dbhz: f64, pub ramp_duration_s: f64, pub jitter_table_cn0_dbhz: Vec<f64>, pub jammer_power_dbw: f64, pub jammer_gain_dbi: f64, pub rx_gain_toward_jammer_db: f64, pub rx_gain_toward_sat_db: f64, pub signal_power_dbw: f64, pub temp_k: f64, pub freq_hz: f64, pub chip_rate_hz: f64, pub jammer_type: String, pub q_override: Option<f64>, pub denial_js_threshold_db: f64, pub capture_js_threshold_db: f64, pub spoof_code_slew_chips_per_s: Vec<f64>, pub spoof_doppler_rate_hz_per_s: Vec<f64>,
}
Expand description

A tracking-loop loss-of-lock scenario. Every field is defaulted, so a body of only kind = "tracking-loop" reproduces the reference configuration.

Fields§

§pll_bandwidth_hz: f64

Carrier (Costas) loop one-sided noise bandwidth (Hz).

§dll_bandwidth_hz: f64

Code (DLL) loop one-sided noise bandwidth (Hz).

§predetection_integration_s: f64

Predetection coherent integration time (s).

§correlator_spacing_chips: f64

Early-to-late correlator spacing (chips).

§carrier_allowance_deg: f64

Carrier 3σ + θ_e allowance (degrees); the 45° three-sigma form of the 15° rule.

§code_allowance_chips: Option<f64>

Code 3σ + lag allowance (chips). Absent ⇒ half the correlator spacing, the discriminator’s linear half-range.

§pullin_bandwidth_ratio: f64

Bandwidth multiplier applied when re-pulling-in after a loss of lock. This is what makes the re-lock threshold higher than the drop threshold.

§drop_confirm_epochs: usize

Consecutive sub-threshold epochs required before lock is declared lost.

§relock_confirm_epochs: usize

Consecutive above-threshold epochs required before lock is re-declared.

§doppler_rate_hz_per_s: f64

Carrier Doppler rate the loop must follow while tracking (Hz/s).

§code_slew_chips_per_s: f64

Code slew the loop must follow while tracking (chips/s).

§cn0_high_dbhz: f64

C/N₀ the profile starts and ends at (dB-Hz).

§cn0_low_dbhz: f64

C/N₀ at the bottom of the profile (dB-Hz).

§ramp_duration_s: f64

Duration of each leg of the down-then-up C/N₀ ramp (s).

§jitter_table_cn0_dbhz: Vec<f64>

C/N₀ values the jitter table is tabulated at (dB-Hz).

§jammer_power_dbw: f64

Jammer transmit power (dBW).

§jammer_gain_dbi: f64

Jammer antenna gain toward the victim (dBi).

§rx_gain_toward_jammer_db: f64

Receive-antenna gain toward the jammer (dB).

§rx_gain_toward_sat_db: f64

Receive-antenna gain toward the satellite (dB).

§signal_power_dbw: f64

Isotropic received signal power (dBW).

§temp_k: f64

Receiver system noise temperature (K).

§freq_hz: f64

Carrier frequency (Hz).

§chip_rate_hz: f64

Spreading-code chip rate (chips/s).

§jammer_type: String

Jammer spectrum class fed to q_factor: broadband, narrowband/cw, swept.

§q_override: Option<f64>

Override the spectral-separation coefficient Q.

§denial_js_threshold_db: f64

The existing power-ratio denial criterion (dB of J/S). Reported unchanged.

§capture_js_threshold_db: f64

The existing power-ratio spoof-capture criterion (dB of J/S).

§spoof_code_slew_chips_per_s: Vec<f64>

Code slew axis of the spoof pull-in map (chips/s).

§spoof_doppler_rate_hz_per_s: Vec<f64>

Carrier Doppler rate axis of the spoof pull-in map (Hz/s).

Implementations§

Source§

impl TrackingLoopScenario

Source

pub fn loop_config(&self) -> LoopConfig

The resolved loop geometry, with the code allowance defaulted to half the spacing.

The jammer link the two denial radii are evaluated on.

Source

pub fn run_json(&self) -> Result<(String, String), String>

Run the scenario, returning the pretty-printed result document and a one-line summary. Deterministic: no random state and no wall-clock read.

Trait Implementations§

Source§

impl BuiltinKind for TrackingLoopScenario

Source§

const KIND: ScenarioKind = ScenarioKind::TrackingLoop

The kind this type answers to.
Source§

fn parse(src: &str) -> Result<Self, String>

Parse the scenario source into this type.
Source§

fn figure_tiers(&self, _out: &RunOutput) -> Result<Option<Value>, String>

The figure_tiers block for this run, given its finished output; None (the default) when the kind emits none. See the trait docs for the contract.
Source§

impl Clone for TrackingLoopScenario

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for TrackingLoopScenario

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for TrackingLoopScenario

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for TrackingLoopScenario

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Scenario for TrackingLoopScenario

Source§

impl Serialize for TrackingLoopScenario

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V