public static FlagGrabber GetInstance() { if (instance == null) { instance = new FlagGrabber(); } 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; }