diff --git a/component/iscs_fg.go b/component/iscs_fg.go new file mode 100644 index 0000000..3043e15 --- /dev/null +++ b/component/iscs_fg.go @@ -0,0 +1,15 @@ +package component + +// FloodGate 防淹门 +type FloodGate struct { + State FgState +} + +// FgState 防淹门状态 +type FgState = uint8 + +const ( + FgOpen FgState = iota //开启(电机正常、锁锁定) + FgPreparingClose //准备关闭(电机正常、锁拔出) + FgClosed //已关闭 +)