Generating C++ code for a project

After you've set up your robot framework in RobotBuilder, you'll need to export the code and load it into Eclipse. This article describes the process for doing so.

Prerequisite

A number of settings get configured when you create a project using the Eclipse plugins. If you have not yet created a project from within Eclipse, you should do so before proceeding (you can delete the project after). Instructions for doing this can be found in the Creating your Benchtop Test Program article.

Generate the code for the project

Generate the code for the project

Verity that the Eclipse workspace location is set properly (1) and generate code for the C++ robot project (2).

Import the project into Eclipse

Import the project into Eclipse

Right-click in the Project Explorer and import your project from the location set in RobotBuilder. Ideally the project has been saved in your workspace.

Project Type

Project Type

Select Existing Projects into Workspace then click Next.

Select directory

Select directory

Click Browse.. locate the project directory created inside the workspace directory specified above, the click OK on the browse dialog and then Finish on the import window

Viewing the imported project

Viewing the imported project

You can view the project in the project explorer by double-clicking on the project name in the project explorer. Expand the src folder to view the source code. From there you can see all the project files. Your subsystems are in the Subsystems folder and the commands are in the Commands folder.

0 Report Errors

Use this form to report any errors with the documentation. For help with WPILib, please use the FIRST Forums at http://forums.usfirst.org For reporting WPILib bugs, please submit an issue on GitHub at https://github.com/wpilibsuite/allwpilib/issues/new

Ignore