FRC team 5584. Est. 2014

 

 

Follow Our Progress

Keep updated with the team by following our social media channels. For exciting highlights videos and robot reveals, be sure to subscribe to our YouTube channel!

Read more

 

Robocamps

Come and join us at one of our Robo Camp workshops! Held at three locations across the Eastern suburbs of Melbourne. Register on our website now!

Read more

 

Our Sponsors

The companies that support our team to run each season and are helping us promote a bright future for STEM in Australia. 

Read more

 

These PCs have been purchased for hosting LEGO Mindstorms software for use at the KNOX City Council Development Program but can potentially also be used and also for IC Robocamps and for FRC Software Programming Training and implementation during the build season.

You may find these instructions useful for setting up your own PC / Laptop for use during the FRC Build Season - the notes include instructions for LabView, C++ and Java, in reality FRC teams will only use one of these languages so there are sections that can be skipped:

  • Building a new Ideapad 100s from scratch for all of the above: Complete ALL sections A through E in order - take care to follow the instructions precisely as the disk space on these devices is minimal and you need to remove downloaded files after they have been expanded / installed otherwise you will run out of disk space :).
  • Installing software on another PC for use at Knox Development Programme and/or IC Robocamps: Complete sections B.1 + C (optional) + D (optional) + E.4
  • Installing software on another PC for use by an FRC team using LabVIEW to program their robot: B.2 + B.3 + B.4 + C (optional) + D (optional) + E.5 + E.9 (if required)
  • Installing software on another PC for use by an FRC team using C++ to program their robot: Complete sections B.3 + B.4 + B.5 + B.6 + C (optional) + D (optional) + E.2 + E.6 + E.9 (if required)
  • Installing software on another PC for use by an FRC team using JAVA to program their robot: Complete sections B.3 + B.4 + B.5 B.7 + C (optional) + D (optional) + E.2 + E.7 + E.8 + E.9 (if required)

NOTE: we have all required files downloaded and staged at <STAGE>. At the IC Boronia campus "<STAGE>" is "\\snazzy\stage". If you don't have access to our local network then you will need to download the packages and stage separately on your PC, alternatively pay us a visit with you laptop and you can complete the installation here :)

 

A. WHEN POWERING UP FOR THE FIRST TIME:

A.1 Plug in power and turn on

A.2 Enter ... 

     Australia

     English (Australia)

     US

     Melbourne

   ... then select "Next"

A.3 Select "Accept", then select local wireless access point and enter password

A.4 Select "Custom settings"

     switch off

     switch off

     switch off

     switch off

     switch off

   ... select "Next"

     switch off

     switch off

     switch off

     switch off

   ... select "Next"

     switch off

     switch off

     switch off

   ... select "Next"

A.5 Select "Skip this step"

A.6 Enter

     Robocamp

     Robocamp

     Robocamp

     Have a guess

A.7 Enter

     Robo

     Camp

     This email address is being protected from spambots. You need JavaScript enabled to view it.

     Australia

   ... untick three checkboxes then select "Next"

A.8 Check network connectivity

     local network storage (e.g. navigate to <STAGE> in windows file explorer)

     internet access (e.g. www.google.com.au)

B. INSTALL SOFTWARE:

B.1 Install Lego Mindstorms EV3 software

     Copy <STAGE>\NI\LMS_EV3\LMS-EV3-WIN32-ENUS-01-02-02-full-setup.exe to C:\Temp (629MB)

     Run the exe

     When prompted for firewall access, tick both to enable private and public network access

     Remove C:\Temp\LMS-EV3-WIN32-ENUS-01-02-02-full-setup.exe

B.2 Install LabVIEW

     Copy <STAGE>\NI\NI_FRC2016.zip to C:\Temp (4.19GB)

     Extract to C:\Temp\NI_FRC2016

     Remove C:\Temp\NI_FRC2016.zip

     Run C:\Temp\NI_FRC2016\autorun.exe

     Select "Install everything for LabVIEW Development"

     Select "Next" then "Next"

     Untick "Search for ..." and then select "Next"

     Enter Robocamp / ICRobotics / Serial number from your NI Labview envelope (M##X#####) (this is provided in your team's KOP - 5584 team members - ask me for our number and I will email it to you) then select "Next"

     Select "Next" to install to default directories

     Accept license agreement then select "Next"

     Accept license agreement then select "Next"

     Select "Next" then "Next" then "Next"

     Wait for install to complete

     Search for labview app and pin to taskbar

     Start labview from taskbar

     In License Status window select "Activate Products"

     Select "Automatically ..." then "Next" then "Next"

     Enter credentials for NI account then select "Next"

     Untick "I am the end user ..." then select "Next" then "Next" then "Finish"

     If license period is good then tick "Do not show ..." and select "Launch Labview"

     Remove C:\Temp\NI_FRC2016

B.3 Install FRC Updates

     Copy <STAGE>\NI\FRCUpdate2016.1.0.zip to C:\Temp (807MB)

     Extract to C:\Temp\FRCUpdate2016.1.0 (password required = @Ahead)Together!FRC^2016)

     Remove C:\Temp\FRCUpdate2016.1.0.zip

     Run C:\Temp\FRCUpdate2016.1.0\setup.exe

     Select "Next" then "Next"

     Untick "Search for ..." and then select "Next"

     Enter Robocamp / ICRobotics / Serial number from NI Labview envelope (M##X#####) (this is provided in your team's KOP - 5584 team members - ask me for our number and I will email it to you) then select "Next"

     Accept license agreement then select "Next"

     Accept license agreement then select "Next"

     Wait for install to complete

     In the "Installation summary" window tick "Run License Manager ..." then select "Next" and "Finish"

     Remove C:\Temp\FRCUpdate2016.1.0

     Right-click on desktop icon for "FRC Driver Station" and select "Pin to taskbar"

B.4 Install git 2.10.1.windows and create local directory structure

      Download windows 64 bit package from <STAGE>\Git\2.10.1\Git-2.10.1-64-bit.exe (or https://git-scm.com/download/win)

      Run it to install (select defaults)

      Search for Git Bash and then pin to task bar

      Launch git bash

      cd /c/

      mkdir scm

      mkdir scm/icrobotics

B.5 Install Java

      Copy/download 32 bit JDK from <STAGE>\Oracle\Java\JDK\32 bit\jdk-8u11.windows-i586.exe (i.e. 32 bit x86 version) from to C:\Temp

      (NOTE: Java is required to support eclipse for C++ and Java development plus the Java Installer to get the JRE onto the roborio)

      (NOTE: you can get Java from the web site: http://www.oracle.com/technetwork/java/javase/downloads/index.html. Select "JDK Download", then scroll down the page to "Java SE Development Kit")

      Run the exe and accept defaults to complete the installation.

      Remove C:\Temp\jdk-8u11.windows-i586.exe

B.6 Install MinGW, WPILIB C++ toolchains, eclipse for C++ and development plugins for C++ development

      Install MinGW

        Copy/download "Minimalist GNU for Windows" from <STAGE>\MinGW\mingw-get-setup.exe to c:\Temp

        Select "C:\Temp\mingw-get-setup.exe", right click and then select "Run As administrator"

        Select "Run" then "Install" and "Continue"

        Once 100% reported, select "Continue"

        Select "Basic Setup" in left pane

        Right click on "mingw32-base" and select "Mark for Installation"

        Right click on "mingw32-gcc-g++" and select "Mark for Installation"

        Right click on "msys-base" and select "Mark for Installation"

        Select "Installation" > "Apply Changes" then "Apply"

        In the Windows Control Panel, select "System" > "Advanced System Settings"

        In the "Advanced" tab select "Environment Variables"

        Select the system PATH variable and then select "Edit"

        Add "C:\MinGW\bin;C:\MinGW\msys\1.0\bin;" to front of the PATH variable

        Select OK, OK, OK and close control panel window

      Install C++ Toolchains

        Copy/download "FRC-2016 Windows Toolchain" from <STAGE>\WPILIB\Toolchain\FRC-2016 Windows Toolchain 4.9.3.msi to c:\Temp

        Unplug any USB storage devices to force install to C: drive

        (NOTE: this last step is important - the MSI installs to the drive that it is run from)

        Select "C:\Temp\FRC-2016 Windows Toolchain 4.9.3.msi", right click and then select "Install"

        Accept license agreement and then select "Install" ... and eventually "Finish"

        Check for files at C:\frc\... check the properties of the frc folder - there should be 127 folders and 2047 files!

        Remove "C:\Temp\FRC-2016 Windows Toolchain 4.9.3.msi"

      Install eclipse

        Copy/download 32-bit Cpp Eclipse from <STAGE>\Eclipse\Eclipse\Eclipse IDE for C++ Developers\32 bit\eclipse-cpp-mars-1-win32.zip to C:\Temp

        Extract it to C:\Temp\eclipse-cpp-mars-1-win32\

        If it does not exist already, create directory C:\Program Files (x86)\Eclipse\

        Rename C:\Temp\eclipse-cpp-mars-1-win32\eclipse directory to cpp

        Move cpp and contents to C:\Program Files (x86)\Eclipse\cpp

        Remove C:\Temp\eclipse-cpp-mars-1-win32

        Remove C:\Temp\eclipse-cpp-mars-1-win32.zip

      Start eclipse

        Navigate to C:\Program Files (x86)\Eclipse\cpp 

        Run eclipse.exe

        Specify workspace - C:\Users\Robocamp\workspace\ccp

      Configuring eclipse

        Select Window -> Preferences

        Select General -> Workspace -> Check Save automatically before build -> OK

        Select Window -> Preferences

        Select Install/Update then Automatic Updates. Check the box at the top to Automatically find new updates and notify me. Select the radio button to Look for updates each time Eclipse is started. Then click OK.

      Install C++ development plugins ...

        Select "Help"

        Click "Install new software"

        From here you need to add a software update site, the location where the plugins will be downloaded. Push the "Add..." button then fill in the "Add Repository" dialog with:

        Name: FRC Plugins

        Location: http://first.wpi.edu/FRC/roborio/release/eclipse/

        Click "OK"

        Click the arrows if necessary to expand the WPILib Robot Development menu

        Select the WPILib Robot Development plugin for C++

        Click Next, Next on the next page, then click the radio button to accept the license agreement and click Finish

        If you receive a Security Warning prompt, click OK to continue

        When prompted, restart Eclipse.

        After Eclipse restarts and you select your CPP WORKSPACE (if prompted) you will see a dialog that says Installing Cpp. This details the installation progress of the plugins, wait for the install to complete before proceeding. This dialog should only appear when the plugins are first installed or updated

        Close welcome tab and exit Eclipse.

B.7 Install eclipse for Java, setup JDK and install development plugins for Java development

      Install eclipse

        Copy/download 32-bit Java Eclipse from <STAGE>\Eclipse\Eclipse\Eclipse IDE for Java Developers\32 bit\eclipse-java-mars-1-win32.zip to C:\Temp

        Extract it to C:\Temp\eclipse-java-mars-1-win32\

        If it does not exist already, create directory C:\Program Files (x86)\Eclipse\

        Rename C:\Temp\eclipse-java-mars-1-win32\eclipse directory to java

        Move java and contents to C:\Program Files (x86)\Eclipse\java

        Remove C:\Temp\eclipse-java-mars-1-win32

        Remove C:\Temp\eclipse-java-mars-1-win32.zip

      Start eclipse

        Navigate to C:\Program Files (x86)\Eclipse\java

        Run eclipse.exe

        Specify workspace - C:\Users\Robocamp\workspace\java

      Setup JDK

        Select Windows > Preferences

        Select Java > Installed JREs

        Be sure that the recently installed Java instance is listed and ticked

        (NOTE: without this setting you will see error messages about the JRE path not being set correctly)

        If you do not see any option with the appropriate location then "Add the JDK":

          Click Add

          Select Standard VM

          Click Next

          Click Directory and browse to the folder for the JDK (C:\Program Files (x86)\Java\jdk1.8.0_11)

          Click OK

          Set name to jdk8

          Click Finish

          Make sure the box for the newly added "jdk8" entry is checked

          Select OK

      Configuring eclipse

        Select Window -> Preferences

        Select General -> Workspace -> Check Save automatically before build -> OK

        Select Window -> Preferences

        Select Install/Update then Automatic Updates. Check the box at the top to Automatically find new updates and notify me. Select the radio button to Look for updates each time Eclipse is started. Then click OK.

      Install Java development plugins ...

        Select "Help"

        Click "Install new software"

        From here you need to add a software update site, the location where the plugins will be downloaded. Push the "Add..." button then fill in the "Add Repository" dialog with:

        Name: FRC Plugins

        Location: http://first.wpi.edu/FRC/roborio/release/eclipse/

        Click "OK"

        Click the arrows if necessary to expand the WPILib Robot Development menu

        Select the WPILib Robot Development plugin for Java

        Click Next, Next on the next page, then click the radio button to accept the license agreement and click Finish

        If you receive a Security Warning prompt, click OK to continue

        When prompted, restart Eclipse.

        After Eclipse restarts and you select your JAVA WORKSPACE (if prompted) you will see a dialog that says Installing Java. This details the installation progress of the plugins, wait for the install to complete before proceeding. This dialog should only appear when the plugins are first installed or updated

        Close welcome tab and exit Eclipse.

NOTE: in future we should also ...

  To automatically update Eclipse when using Robot Builder:

    Start Eclipse

    Windows > Preferences > General > Workspace

    Tick the "Refresh using native hooks or polling"

 

C. CLEAN UP AND CREATE BACKUP OF PC:

These steps are optional but highly recommended

C.1 Cleanup C: drive

      Remove C:\Temp and contents

      Remove the GIT clone

      Right click on "Windows (C:)" in the windows file explorer MENU BAR and select "Delete History"

      Right click on C: and select "Properties"

      In the "General" tab select "Disk Cleanup"

      Tick all categories and select "Clean up system files"

      Retick all categories and then select "OK" and then "Delete files"

      In browser, clear all browsing data

      Check downloads folder is empty

      Open Windows explorer, remove items from "quick access" area

C.2 Create a backup of the C: drive

      Plugin a USB device with adequate space for the system image

      Select Control Panel > System and Security > File History > System Image Backup

      Select "Create a system Image"

      Select appropriate hard drive for image

      Select "Next" then "Start Backup"

      (Note: this stores the back up files in the target drive in the "WindowsImageBackup" folder)

 

D. CREATE SYSTEM RECOVERY DRIVE:

These steps are optional but highly recommended

D.1 Create system recovery drive

      [revisit]

      (NOTE: https://www.tenforums.com/tutorials/4200-recovery-drive-create-windows-10-a.html)

      (NOTE: apparently we can use the same one for all PCs of the same bitness so we don't need one of these for each PC of the same type)

D.2 Make notes for recovery process

      [revisit]

 

E. ADDITIONAL NOTES:

E.1 Useful references

      http://wpilib.screenstepslive.com/s/4485

      http://www.howtogeek.com/206329/how-to-find-your-lost-windows-or-office-product-keys/

      http://www.pcworld.com/article/3011736/windows/how-to-create-an-image-backup-in-windows-10-and-restore-it-if-need-be.html

E.2 Creating shortcut on taskbar for C++ eclipse instance

      If eclipse is pinned to the taskbar, select and right-click then select "unpin"

      Navigate to C:\Program Files (x86)\Eclipse\cpp, select eclipse.exe, right-click and select "Pin to taskbar"

E.3 Creating shortcut on taskbar for Java eclipse instance

      If eclipse is pinned to the taskbar, select and right-click then select "unpin"

      Navigate to C:\Program Files (x86)\Eclipse\java, select eclipse.exe, right-click and select "Pin to taskbar"

E.4 Testing LEGO Mindstorms

      Confirm that we can connect to an EV3

      Confirm that we can load a program

      Confirm that sensor and motors identified correctly with parameter feedback

E.5 Testing LabVIEW build and deploy

      cd scm/icrobotics

      git clone https://github.com/icrobotics-team5584/frc.git

      Launch LabVIEW 

      Open Puffy.Sydney LabVIEW project

      (NOTE: may need to activate Vision Acquisition Software via "Help" > "Activate LabVIEW Components")

      (NOTE: needed to restart labview for the activation too be effective)

      Build (with no deployment)

      (NOTE: took 100 sec on Lenovo 100S compared with 95 sec on Lenovo X201)

      Deploy to Mr Basil and confirm correct operation via driver station

E.6 C++ build and deploy

      Launch eclipse for C++ (C:\Program Files (x86)\Eclipse\cpp\eclipse.exe)

      Select File > New > Project > WPILib Robot C++ Development > Example Robot C++ Project

      Select Next

      Select "Getting Started" then "Next" then "Finish"

      In the Package explorer navigate to "Getting Started" > "src"

      Double click Robot.cpp to load into the middle pane, select all (CTRL+A) and delete the contents of the Robot.cpp file

      Copy contents of Robot.cpp code from c:\scm\icrobotics\frc\software\cpp\Getting Started\... into the Robot.cpp file in the new eclipse project

      Save with CTRL+S

      If you configured eclispe as described above then saving a source file will cause a build to occur automatically

      Check the "Problems" tab in the bottom pane - this should report "0 items"

      If you get one or more "Program XXX not found in PATH" errors ...

        Scroll to the right to see which preference parameter is triggering this

        Right click on project name and select "Properties" > "C/C++ General" > "Preprocessor..."

        For the "linux-simulate" configuration select "CDT Cross GCC Built-in Compiler Settings" in the "Providers" tab and prefix ${COMMAND} with "arm-frc-linux-gnueabi-" so that start of command line is "arm-frc-linux-gnueabi-${COMMAND}..."

        Select "Apply" and "OK"

        Select "Window" > "Preferences" > "C/C++" > "Build" > "Settings"

        In the "Discovery" tab select "CDT GCC Built-in Compiler Settings" then prefix ${COMMAND} with "arm-frc-linux-gnueabi-" so that start of command line is "arm-frc-linux-gnueabi-${COMMAND}..."

        Select "Apply" and "OK"

      If you see "Method XXX could not be resolved" or "Invalid arguments" or "Function XXX could not be resolved"

        (often reported in the Problem tab but the software still seems to build ok via Project "Clean" followed by Project "Build")

        The issue will most likely be with the indexer configuration. Note that the indexer is used by CODAN which is the CODe Analysis system built into CDT, this is the system that reports on your code as you type. Note that the index is usually (configuration dependent) only updated when you save files so it is always wise to get in the habit of saving files as you encounter unexpected errors - if you are not already familiar with the Eclipse "Save All" keyboard shortcut then you soon will be - CTRL+SHIFT+S. We find this configuration works for the indexer for most of our projects:

        (see Window > Preferences > C/C++ > Indexer and check that there are no project specific settings at  (project) > Properties > C/C++ General > Indexer)

        TICK "Enable indexer"
        TICK "Index source files not included in the build"
        TICK "Index unused headers"
        TICK "Index all header variants"

        UNTICK "Index source and header files opened in editor"
        TICK "Allow heuristic resolution of includes"
        Set "Skip files larger than" to 8MB
        Set "Skip included files larger than" to 16MB

        UNTICK "Skip all references ..."
        UNTICK "Skip implicit references ..."
        UNTICK "Skip type and macro references ..."

        TICK "Automatically update the index"
        TICK "Update index immediately after every file-save"

        TICK "Use the build configuration specified in the projects indexer settings

        For "Indexer database cache" ...
        Set "Limit relative to the maximum heap size" to 10%
        Set "Absolute limit" to 64MB

        For "Header file cache" ...
        Set "Absolute limit" to 64MB

        Then select "Apply" and "OK".

        If you change any of the above values then try (project) > Index > Rebuild and if all else fails, try exiting and restarting eclipse.

      Recheck the "Problems" tab in the bottom pane - this should now report "0 items"

      Complete a clean build ...

         Right click on project and select "Clean Project"

         Right click on project and select "Build Project"

         Check the "Problems" tab in the bottom pane - this should now report "0 items"

      Connect wirelessly to robot

      Launch FRC Driver Station from taskbar

      Right click on the project in the Project Explorer then select "Run As" > "WPILib C++ Deploy"

      Wait for "BUILD SUCESSFUL" to be reported in the eclipse console (may need to make a secon attempt if first timed out)

      Enable via driver station and confirm that robot responds to joystick movements

      Modify Robot.cpp (replace numbers in CANTalon(X) - 1>3; 2>4; 3>1; 4>2), save and redeploy to demonstrate reverse joystick controls :)

      Delete the "Getting Started" project (and files) then exit eclipse

E.7 Deploy JRE to RoboRIO

      Check PC is connected to the internet

      Navigate to and run C:/Users/Robocamp/wpilib/tools/java-installer.jar

      Select "Next" then "Next"

      Scroll down and tick the "Accept License Agreement" radio button

      Select "Next Step"

      Select the "ARMv7 Linux - VFP, SoftFP ABI, Little Endiain" link (ejdk-8u6-fcs-b23-linux-arm-vfp-sflt-12_jun_2014.tar.gz)

      Provide Oracle username and password

      JRE.tar.gz and JRE.tar.gz.md5 will be downloaded to C:\Users\Robocamp\wpilib\tools\...

      Now check that PC is not connected to RoboRIO with ethernet or wireless and hardwaire with USB cable 

      Enter team number and select "Connect" then "Finish"

E.8 JAVA build and deploy

      Launch eclipse for Java (C:\Program Files (x86)\Eclipse\java\eclipse.exe)

      Select File > New > Project > WPILib Robot Java Development > Example Robot Java Project

      Select Next

      Enter 5584 then select Next

      Select "Getting Started" then "Finish"

      In the Package explorer navigate to "Getting Started" > "src" > "org.usfirst.frc.team5584.robot"

      Double click Robot.java to load into the middle pane, select all (CTRL+A) and delete the contents of the Robot.java file

      Copy contents of Robot.java code from c:\scm\icrobotics\frc\software\java\Getting Started\... into the Robot.java file in the new eclipse project

      Save with CTRL+S

      If you configured eclispe as described above then saving a source file will cause a build to occur automatically

      Check the "Problems" tab in the bottom pane - this should report "0 items"

      Connect wirelessly to robot

      Launch FRC Driver Station from taskbar

      Right click on the project in the Project Explorer then select "Run As" > "WPILib Java Deploy"

      Wait for "BUILD SUCESSFUL" to be reported in the eclipse console (may need to make a secon attempt if first timed out)

      Enable via driver station and confirm that robot responds to joystick movements

      Modify Robot.java (replace numbers in CANTalon(X) - 1>3; 2>4; 3>1; 4>2), save and redeploy to demonstrate reverse joystick controls :)

      Delete the "Getting Started" project (and files) then exit eclipse

E.9 Re-image the ROBORIO

Follow this section if you are unsure what the status of the roborio is in. For example your team is switching programming languages; you have purchased a new Roborio or you have inherited one from another team. You may also need to perform this task at the beginning of or during the FRC build season when new FRC Updates and/or a new RoboRIO image are recieved from FIRST. This is an uncommon task, you should not really be conducting this more than a couple of times each build season ...

      Connect PC to Roborio with USB cable

      Navigate to C:\Program Files (x86)\National Instruments\LabVIEW 2015\project\roboRIO Tool

      Run "roboRIO_ImagingTool.exe"

      Check roborio has been detected in top left pane

      Enter team number in top right pane

      TICK the "Format Target" in bottom left pane and select the image that you want to apply to the roboRIO

      Select "Reformat" and wait for the re-image to complete (5 minutes)

      Select "OK" then "Close"

E.10 Extract windows key and record with PC serial number

      Run the following command in a powershell console:

      (Get-WmiObject -query 'select * from SoftwareLicensingService').OA3xOriginalProductKey

      Make a note of the product code that is returned

      Make a note of the serial number on the PC base plate