FaultManager¶
- class lsst.ts.m2gui.FaultManager(limit_switch_status: dict)¶
Bases:
object
Fault manager to record the system error.
Parameters¶
- limit_switch_status
dict
Default limit switch status.
Attributes¶
- signal_error
SignalError
Signal to report the new or cleared errors.
- signal_limit_switch
SignalLimitSwitch
Signal to report the updated status of limit switch.
- summary_faults_status
int
Summary faults status in the cell controller.
- errors
set
[int
] Errors in the controller.
- limit_switch_status_retract
dict
Retract limit switch status. The key is the name of limit switch. The value is the status in bool. True if the limit switch is triggered, otherwise, False.
- limit_switch_status_extend
dict
Extend limit switch status. The key is the name of limit switch. The value is the status in bool. True if the limit switch is triggered, otherwise, False.
Methods Summary
add_error
(error)Add the error.
clear_error
(error)Clear the error.
Has the error or not.
Report the enabled faults mask.
Reset errors.
reset_limit_switch_status
(limit_switch_type)Reset the limit switch status.
Update the limit switch status.
update_summary_faults_status
(status)Update the summary faults status.
Methods Documentation
- report_enabled_faults_mask(mask: int) None ¶
Report the enabled faults mask.
Parameters¶
- mask
int
Enabled faults mask.
- mask
- reset_errors() None ¶
Reset errors.
- reset_limit_switch_status(limit_switch_type: LimitSwitchType) None ¶
Reset the limit switch status.
Parameters¶
- limit_switch_typeenum
lsst.ts.m2com.LimitSwitchType
Type of limit switch.
Raises¶
ValueError
Unsupported limit switch type.
- limit_switch_typeenum
- limit_switch_status