C# 클래스 CSharpRoboticsLib.FlowControl.EdgeTrigger

Used to detect changes in a boolean state
파일 보기 프로젝트 열기: shockwave4488/CSharpRoboticsLib 1 사용 예제들

공개 메소드들

메소드 설명
EdgeTrigger ( )

EdgeTrigger with initial value false

EdgeTrigger ( bool initial )

EdgeTrigger with the given initial value

GetFalling ( bool trigger ) : bool

Returns true if there is a falling edge, does not update the internal state

GetFallingUpdate ( bool trigger ) : bool

Returns true if there is a falling edge and updates the internal state

GetRising ( bool trigger ) : bool

Returns true if there is a rising edge, does not update the internal state

GetRisingUpdate ( bool trigger ) : bool

Returns true if there is a rising edge and updates the internal state

Update ( bool trigger ) : void

Manually update the internal state

메소드 상세

EdgeTrigger() 공개 메소드

EdgeTrigger with initial value false
public EdgeTrigger ( )

EdgeTrigger() 공개 메소드

EdgeTrigger with the given initial value
public EdgeTrigger ( bool initial )
initial bool

GetFalling() 공개 메소드

Returns true if there is a falling edge, does not update the internal state
public GetFalling ( bool trigger ) : bool
trigger bool Current value of the edge triggered state
리턴 bool

GetFallingUpdate() 공개 메소드

Returns true if there is a falling edge and updates the internal state
public GetFallingUpdate ( bool trigger ) : bool
trigger bool Current value of edge triggered state
리턴 bool

GetRising() 공개 메소드

Returns true if there is a rising edge, does not update the internal state
public GetRising ( bool trigger ) : bool
trigger bool Current value of the edge triggered state
리턴 bool

GetRisingUpdate() 공개 메소드

Returns true if there is a rising edge and updates the internal state
public GetRisingUpdate ( bool trigger ) : bool
trigger bool Current value of edge triggered state
리턴 bool

Update() 공개 메소드

Manually update the internal state
public Update ( bool trigger ) : void
trigger bool Current value of the edge triggered state
리턴 void