CSharpRoboticsLib.FlowControl.EdgeTrigger.GetFalling C# (CSharp) Method

GetFalling() public method

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
return bool
        public bool GetFalling(bool trigger)
        {
            return (!trigger && m_feedback);
        }

Usage Example

 public void ManualUpdateRisingToFalling()
 {
     EdgeTrigger t = new EdgeTrigger();
     t.Update(false);
     Assert.IsTrue(t.GetRising(true));
     t.Update(true);
     Assert.IsTrue(t.GetFalling(false));
 }