Skip to content

Creating a New Project

Zach Anderson edited this page Jan 22, 2014 · 2 revisions

Before starting work on a new project, make sure you pull the latest changes from GitHub and create an appropriate branch. See Using Git for instructions.

Once you've set everything up you're going to want to start working. If all you want to do is modify and existing project, then you can get right into that. But if you want to work on something that hasn't been worked on before, you'll want to create a new project. You could create a new project from scratch, but that will take time to get everything set up. The easiest way to get started is to copy the TemplateRobot project. ####Duplicating the Project

  1. Right click on the templateProject in the Eclipse Package Explorer and select copy.
  2. Right click on the white space beneath all of the existing projects and select paste. A dialogue window will appear.
    Copy Project Dialogue
  3. Replace Copy of TemplateRobot with the name of your project.
  4. If your projects are not stored in your workspace directory then uncheck Use default location and navigate to the directory where your projects are stored. Create a new directory with the same name as your project and put that directory in the location box.
  5. Eclipse will copy the files to the provided directory and create a new project in the Package Explorer.

####Renaming Assets

  1. In the Package Explorer expand the project and then the src folder.
  2. Right click on the package org.frc4931.name.robot, mouse over Refactor, and then select Rename..., another dialogue box will appear.
    Rename Package Dialogue
  3. Change name to your first name and robot to the name you used for the project, in all lowercase, then click OK
  4. Now do the same thing with TemplateRobot.java, only this time change the name to the name of your project, preserving caps.

####Modifying Build Resources

  1. Now expand the resources folder. Inside is META-INF expand that too. Open MANIFEST.MF
  2. On line 1 change TemplateRobot to the name of your robot.
  3. On line 4 change both occurences of TemplateRobot to the name of your robot. Change name to your name and robot to you robot's name, again in lowercase. Leave line 7 blank.
    MANIFEST.MF
  4. Open up build.xml. Change TemplateRobot to the name of your robot.
  5. If you plan to deploy to the old robot, change 10.49.31.2 to 10.99.31.2, otherwise leave it unchanged.
    build.xml
  6. Edit README.MD to contain information about your project. Goals, tasks, todos, usage, etc.
  7. Save your changes to all of your files and close them.
  8. Stage your changes.
  9. Commit your changes to git with a message similar to "Initial Commit."
  10. Start working.
Clone this wiki locally