Sparcs#

class esis.nsroc.Sparcs(jitter_pointing=None, drift_pointing=None, jitter_roll=None, drift_roll=None)[source]#

Bases: Printable, Replaceable

A Python representation of the specified performance of SPARCS.

The Solar Pointing Attitude Rocket Control System (SPARCS) is the attitude control system NSROC provides to point a payload at the Sun. Pitch and yaw move the line of sight across the Sun, and roll turns the payload about it.

Attributes

drift_pointing

The rate at which the pointing drifts in pitch and yaw.

drift_roll

The rate at which the roll angle drifts.

jitter_pointing

The peak-to-peak jitter of the pointing in pitch and yaw.

jitter_roll

The jitter of the roll angle.

Methods

__init__([jitter_pointing, drift_pointing, ...])

replace(**changes)

A copy of this object with the given fields replaced.

to_string([prefix])

Public-facing version of the __repr__ method that allows for defining a prefix string, which can be used to calculate how much whitespace to add to the beginning of each line of the result.

Inheritance Diagram

Inheritance diagram of esis.nsroc.Sparcs
Parameters:
replace(**changes)#

A copy of this object with the given fields replaced.

A method version of dataclasses.replace(), matching named_arrays.AbstractArray.replace(), so that a nested change reads the same at every level:

system.replace(
    surface=system.surface.replace(
        sag=system.surface.sag.replace(radius=r),
    ),
)

The copy is shallow, as dataclasses.replace() is: every field which is not named is shared with the original, and mutating one through the copy is mutating it in both. Take copy.deepcopy() of the result where that matters.

Parameters:

changes – The fields to overwrite in the copy.

Return type:

Self

to_string(prefix=None)#

Public-facing version of the __repr__ method that allows for defining a prefix string, which can be used to calculate how much whitespace to add to the beginning of each line of the result.

Parameters:

prefix (None | str) – an optional string, the length of which is used to calculate how much whitespace to add to the result.

Return type:

str

drift_pointing: None | Quantity = None#

The rate at which the pointing drifts in pitch and yaw.

drift_roll: None | Quantity = None#

The rate at which the roll angle drifts.

jitter_pointing: None | Quantity = None#

The peak-to-peak jitter of the pointing in pitch and yaw.

jitter_roll: None | Quantity = None#

The jitter of the roll angle.

The NASA Sounding Rocket Program Handbook gives the jitter of the ring-laser gyroscope which controls the roll only as an upper bound, without saying whether it is peak to peak or RMS.