ADCS.satellite_hardware.errors.density_noise module

class ADCS.satellite_hardware.errors.density_noise.DensityNoise(density, sample_time, *, std_noise=0.0, noise=0.0, bounds=(array([-inf]), array([inf])))[source]

Bases: Noise

Noise specified as a noise density, converted for the model’s averaging interval.

Data sheets quote sensor noise as a density: a gyro’s angle random walk in deg/√h or rad/s/√Hz, a magnetometer’s noise in nT/√Hz. A reading averaged over an interval \(\Delta t\) then has standard deviation \(\eta/\sqrt{\Delta t}\): shorter averages are noisier and longer averages are cleaner. This interval describes the measurement represented by the noise model; it need not match how often software polls a sensor. A plain Noise has one standard deviation whatever the rate, which is right for quantisation and electronics noise but wrong for the density part.

This subclass takes the density and the sample time and produces the per-reading standard deviation

\[\sigma = \sqrt{\sigma_n^2 + \eta^2 / \Delta t},\]

where \(\sigma_n\) (std_noise) is the rate-independent floor. The result is stored in std_noise of the base class, so every consumer (the reading draw, the measurement covariance the estimator builds, the warm-start weights) sees the scaled value with no change. at_sample_time() re-derives the model for another interval.

Parameters:
  • density (float or array) – Noise density \(\eta\) in reading units per root hertz (equivalently reading units times \(\sqrt{\mathrm{s}}\)).

  • sample_time (float) – Averaging interval \(\Delta t\) in seconds. density must be in reading units per \(\sqrt{\mathrm{Hz}}\) (reading units times \(\sqrt{\mathrm{s}}\)). Convert densities quoted per another time unit before passing them.

  • std_noise (float or array, optional) – Rate-independent part \(\sigma_n\) of the standard deviation (default 0).

  • noise (float or array, optional) – Mean or nominal offset \(n_0\) (default 0).

  • bounds ((float, float), optional) – Lower and upper limits applied after sampling.

at_sample_time(sample_time)[source]

The same density model evaluated for another sample interval.

Parameters:

sample_time (float)

Return type:

DensityNoise

broadcast_to(length, *, owner='sensor')[source]

Size this model for a length-output sensor (see Noise.broadcast_to()).

Parameters:
  • length (int)

  • owner (str)

Return type:

DensityNoise

copy()[source]
Return type:

DensityNoise