Exemplo n.º 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);
 }
Exemplo n.º 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();
        }
Exemplo n.º 3
0
        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;
        }