Exemplo n.º 1
0
 public void SetState //Sets the state of the transfer
 (
     TRANSFER_STATE state
 )
 {
     m_currentState = state;
 }
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();
        }