Set() public method

Sets the value to the motor, within the change limitations
public Set ( double value ) : void
value double value to set to or approach
return void
 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);
         }
     }
 }
 public void RampDecelPositiveTest()
 {
     using (RampMotor motor = new RampMotor(typeof(Talon), 0))
     {
         motor.MaxDecel = 0.2;
         motor.ForcePower(1);
         for (int i = 0; motor.Get() > 0; i++)
         {
             Assert.AreEqual(1 - (i * 0.2), motor.Get(), 0.001);
             motor.Set(0);
         }
     }
 }