Exemple #1
0
 private static Intake instance = null; // a singlex which will make it so we don't need to define intake twice if we have it in auton and teleop instead have it once.
 public static Intake GetInstance()
 {
     if (instance == null)
     {
         instance = new Intake();
     }
     return(instance);
 }
Exemple #2
0
        private Transfer()
        {
            Robotmap map = Robotmap.GetInstance();

            transferMotor = new TalonSRX(map.GetTransfer_ID()); //Creates the motor
            transferMotor.SetInverted(true);

            CANController = Robotmap.GETCANController(); //Creates the first sensor

            numberOfBalls = 0;                           //The original amount of balls

            glowing = LED.GetInstance();

            m_currentState = TRANSFER_STATE.TRANSFER_OFF;
            eject          = Intake.GetInstance();
        }
        public TeleopControl()
        {
            m_gamepad = new GameController(UsbHostDevice.GetInstance()); // create gamepad

            m_chassis = Chassis.GetInstance();                           //Creates chassis

            m_deliver = Deliver.GetInstance();                           // Create deliver

            m_transfer = Transfer.GetInstance();                         //Creates "Transfer"

            m_intake = Intake.GetInstance();                             // Creates Intake

            m_elevator = FlagElevator.GetInstance();                     //Creates Flag Elevator

            m_grabber   = FlagGrabber.GetInstance();                     //Creates Flag Grabber
            prevDeliver = false;
        }