예제 #1
0
        private Intake()
        {
            Robotmap map = Robotmap.GetInstance();

            intakeMotor = new TalonSRX(map.GetIntake_ID()); // Creates the TalonSRX motor.
            intakeMotor.SetInverted(true);                  // If you get value i will invert it. if it is going the wrong way it can be inverted.
            m_currentState = INTAKESTATE.Off;
        }
예제 #2
0
 public void setState(INTAKESTATE sweeper)
 {
     m_currentState = sweeper;
 }