Source code for ska_mid_dish_manager.models.dish_enums
import enum
[docs]class DishDevice(str, enum.Enum):
DS = "DS"
SPF = "SPF"
SPFRX = "SPFRX"
WMS = "WMS"
B5DC = "B5DC"
[docs]class DishMode(enum.IntEnum):
STARTUP = 0
SHUTDOWN = 1
STANDBY_LP = 2
STANDBY_FP = 3
MAINTENANCE = 4
STOW = 5
CONFIG = 6
OPERATE = 7
UNKNOWN = 8
[docs]class SPFOperatingMode(enum.IntEnum):
UNKNOWN = 0
STARTUP = 1
STANDBY_LP = 2
OPERATE = 3
MAINTENANCE = 4
ERROR = 5
[docs]class SPFRxOperatingMode(enum.IntEnum):
# enums are from ICD
UNKNOWN = 0
STARTUP = 1
STANDBY = 2
OPERATE = 3
CONFIGURE = 4
[docs]class DSOperatingMode(enum.IntEnum):
# enums are from dish lmc
UNKNOWN = 0
STARTUP = 1
STANDBY = 2
STOW = 3
LOCKED = 4
POINT = 5
[docs]class PointingState(enum.IntEnum):
READY = 0
SLEW = 1
TRACK = 2
SCAN = 3
UNKNOWN = 4
[docs]class Band(enum.IntEnum):
NONE = 0
B1 = 1
B2 = 2
B3 = 3
B4 = 4
# pylint: disable=invalid-name
B5a = 5
B5b = 6
UNKNOWN = 7
[docs]class IndexerPosition(enum.IntEnum):
OPTICAL = 0
B1 = 1
B2 = 2
B3 = 3
B4 = 4
B5a = 5
B5b = 6
B6 = 7
MOVING = 8
UNKNOWN = 9
ERROR = 10
[docs]class SPFBandInFocus(enum.IntEnum):
UNKNOWN = 0
B1 = 1
B2 = 2
B3 = 3
B4 = 4
B5a = 5
B5b = 6
[docs]class SPFHealthState(enum.IntEnum):
"""SPF health state enums."""
UNKNOWN = 0
NORMAL = 1
DEGRADED = 2
FAILED = 3
[docs]class TrackInterpolationMode(enum.IntEnum):
NEWTON = 0
SPLINE = 1
[docs]class TrackProgramMode(enum.IntEnum):
TABLEA = 0
TABLEB = 1
POLY = 2
[docs]class TrackTableLoadMode(enum.IntEnum):
NEW = 0
APPEND = 1
RESET = 2
[docs]class PowerState(enum.IntEnum):
# TODO: Review enumeration, UPS may not be necessary, see DSPowerState
UPS = 0
LOW = 1
FULL = 2
[docs]class SPFPowerState(enum.IntEnum):
# enums are from ICD
UNKNOWN = 0
LOW_POWER = 1
FULL_POWER = 2
[docs]class DSPowerState(enum.IntEnum):
# TODO: Review enumeration, ICD has only 2 enums
OFF = 0
UPS = 1
FULL_POWER = 2
LOW_POWER = 3
UNKNOWN = 4
[docs]class CapabilityStates(enum.IntEnum):
UNAVAILABLE = 0
STANDBY = 1
CONFIGURING = 2
OPERATE_DEGRADED = 3
OPERATE_FULL = 4
UNKNOWN = 5
[docs]class SPFCapabilityStates(enum.IntEnum):
UNAVAILABLE = 0
STANDBY = 1
OPERATE_DEGRADED = 2
OPERATE_FULL = 3
[docs]class SPFRxCapabilityStates(enum.IntEnum):
UNKNOWN = 0
UNAVAILABLE = 1
STANDBY = 2
CONFIGURE = 3
OPERATE = 4
[docs]class NoiseDiodeMode(enum.IntEnum):
"""SPFRx noise diode mode enums."""
OFF = 0
PERIODIC = 1
PSEUDO_RANDOM = 2
[docs]class DscCmdAuthType(enum.IntEnum):
"""Dish structure command authority enums."""
NO_AUTHORITY = 0
LMC = 1
HHP = 2
EGUI = 3
[docs]class DscCtrlState(enum.IntEnum):
"""Dish structure control state enums."""
# Note LOCKED_STOWED also equates to LOCKED
LOCKED = 0
MANUAL_CONTROL = 1
ENGINEERING_CONTROL = 2
REMOTE_CONTROL = 3
NO_AUTHORITY = 4
[docs]class FannedOutCommandStatus(enum.IntEnum):
"""Fanned out command status enums."""
PENDING = 0
QUEUED = 0
IN_PROGRESS = 1
COMPLETED = 2
TIMED_OUT = 3
FAILED = 4
IGNORED = 5
ABORTED = 6
REJECTED = 7