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

ForcePower() public method

Set the power of a motor regardless of the ramping limitations
public ForcePower ( double value ) : void
value double Power to set to
return void
        public void ForcePower(double value)
        {
            m_power = value;
            m_controller.Set(value);
        }

Usage Example

 public void RampForceTest()
 {
     using (RampMotor motor = new RampMotor(typeof(Talon), 0))
     {
         motor.MaxChange = 0.2;
         motor.ForcePower(1);
         Assert.AreEqual(1, motor.Get(), 0.001);
     }
 }
All Usage Examples Of CSharpRoboticsLib.WPIExtensions.RampMotor::ForcePower