CSharpRoboticsLib.WPIExtensions.RampMotor.Get C# (CSharp) Method

Get() public method

Returns the last value set to this controller
public Get ( ) : double
return double
        public double Get()
        {
            return m_controller.Get();
        }

Usage Example

 public void RampAccelPositiveTest()
 {
     using (RampMotor motor = new RampMotor(typeof(Talon), 0))
     {
         motor.MaxAccel = 0.2;
         for (int i = 0; motor.Get() < 1; i++)
         {
             motor.Set(1);
             Assert.AreEqual(0.2 * (i + 1), motor.Get(), 0.001);
         }
     }
 }
All Usage Examples Of CSharpRoboticsLib.WPIExtensions.RampMotor::Get