FaultManager¶
- class lsst.ts.m2gui.FaultManager(limit_switch_status)¶
Bases:
object
Fault manager to record the system error.
- Parameters:
- limit_switch_status
dict
Default limit switch status.
- 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.
- 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.
- signal_error
Methods Summary
add_error
(error)Add the error.
clear_error
(error)Clear the error.
Has the error or not.
Reset errors.
reset_limit_switch_status
(limit_switch_type)Reset the limit switch status.
Update the limit switch status.
Methods Documentation
- reset_errors()¶
Reset errors.
- reset_limit_switch_status(limit_switch_type)¶
Reset the limit switch status.
- Parameters:
- limit_switch_typeenum
lsst.ts.m2com.LimitSwitchType
Type of limit switch.
- limit_switch_typeenum
- Raises:
ValueError
Unsupported limit switch type.
- update_limit_switch_status(limit_switch_type, ring, number, new_status)¶
Update the limit switch status.
- Parameters:
- limit_switch_typeenum
lsst.ts.m2com.LimitSwitchType
Type of limit switch.
- ringenum
Ring
Name of ring.
- number
int
Number of actuator.
- new_status
bool
New status of limit switch. If the limit switch is triggered, put True, otherwise, False.
- limit_switch_typeenum
- Raises:
ValueError
Unsupported limit switch type.
ValueError
The limit switch is not in the list.