public Conveyer()
 {
     conveyor = new Talon(Constants.Conveyer_Channel);
     beamBrakeIn = new DigitalInput(Constants.Conveyer_BeambrakeInChannel);
     beamBrakeOut = new DigitalInput(Constants.Conveyer_BeambrakeOutChannel);
     balls = 0;
     InState = false;
 }
        public static void TestSet()
        {
            using (Talon t1 = new Talon(0), t2 = new Talon(1), t3 = new Talon(2))
            {
                SpeedControllerGroup s = new SpeedControllerGroup(t1, t2, t3);
                s.Set(1);
                for (int i = 0; i < 3; i++)
                    Assert.AreEqual(1, SimData.PWM[i].Value, 0.01);

                s.Set(0);
                for (int i = 0; i < 3; i++)
                    Assert.AreEqual(0, SimData.PWM[i].Value, 0.01);
            }
        }
 public Roller()
 {
     on = new Toggle();
     motor = new Talon(Constants.Intake_Channel);
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="TalonMotor"/> class.
 /// </summary>
 /// <param name="port">The port.</param>
 public TalonMotor(int port)
 {
     motor = new Talon(port);
 }