Beispiel #1
0
 private static FlagElevator instance = null; // a singlex which makes it so that we don't have to make two flag Elevators if we have it for auton and teleop instead we can have one.
 public static FlagElevator GetInstance()
 {
     if (instance == null)
     {
         instance = new FlagElevator();
     }
     return(instance);
 }
        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;
        }