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

Update() public method

Manually update the internal state
public Update ( bool trigger ) : void
trigger bool Current value of the edge triggered state
return void
        public void Update(bool trigger)
        {
            m_feedback = trigger;
        }

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));
 }
All Usage Examples Of CSharpRoboticsLib.FlowControl.EdgeTrigger::Update