src/auto/Autonomous.java
private void changeFile(int iFileType)
    {
        switch (iFileType)
        {
            case Config.stDigInAutoCenter:   // 1
            {
                m_sFileTypeStat = "AutoC: ";
                m_sFileName = m_sAutoCenter; 
                break;
            } 

            case Config.stDigInAutoLeft:   // 2
            {
                m_sFileTypeStat = "AutoL: ";
                m_sFileName = m_sAutoLeft;
                break;
            }

            case Config.stDigInAutoRight:  // 3
            {
                m_sFileTypeStat = "AutoR: ";
                m_sFileName = m_sAutoRight; 
                break;
            }
                
            case Config.stDigInReg:   // 4
            {
                m_sFileTypeStat = "Reg: ";
                m_sFileName = m_sRegOutput;
                break;
            }
                
            default:
            {
                m_sFileTypeStat = "AutoC: ";
                m_sFileName = m_sAutoCenter; 
                break;
            }
        }
    }
/**
     * Changes file based on number thats passed in, only 1 to 4 are valid.
     * @param iFileType 
     */
Changes file based on number thats passed in, only 1 to 4 are valid.
Changes file based on number thats passed in only 1 to 4 are valid .
private void changeFile(int iFileType)
    {
        switch (iFileType)
        {
            case Config.stDigInAutoCenter:   
            {
                m_sFileTypeStat = "AutoC: ";
                m_sFileName = m_sAutoCenter; 
                break;
            } 
            case Config.stDigInAutoLeft:   
            {
                m_sFileTypeStat = "AutoL: ";
                m_sFileName = m_sAutoLeft;
                break;
            }
            case Config.stDigInAutoRight:  
            {
                m_sFileTypeStat = "AutoR: ";
                m_sFileName = m_sAutoRight; 
                break;
            }
            case Config.stDigInReg:   
            {
                m_sFileTypeStat = "Reg: ";
                m_sFileName = m_sRegOutput;
                break;
            }
            default:
            {
                m_sFileTypeStat = "AutoC: ";
                m_sFileName = m_sAutoCenter; 
                break;
            }
        }
    }
private void changeFile ( int iFileType ) { switch ( iFileType ) { case Config . stDigInAutoCenter : { m_sFileTypeStat = "AutoC: " ; m_sFileName = m_sAutoCenter ; break ; } case Config . stDigInAutoLeft : { m_sFileTypeStat = "AutoL: " ; m_sFileName = m_sAutoLeft ; break ; } case Config . stDigInAutoRight : { m_sFileTypeStat = "AutoR: " ; m_sFileName = m_sAutoRight ; break ; } case Config . stDigInReg : { m_sFileTypeStat = "Reg: " ; m_sFileName = m_sRegOutput ; break ; } default : { m_sFileTypeStat = "AutoC: " ; m_sFileName = m_sAutoCenter ; break ; } } }
Changes file based on number thats passed in, only 1 to 4 are valid.
Changes file based on number thats passed in only 1 to 4 are valid .
// 1 // 2 // 3 // 4