Generating C++ code for a project
Adding code to create an actual working subsystem is very straightforward. For simple subsystems that don't use feedback it turns out to be extremely simple. In this section we will look at an example of a Claw subsystem that operates the motor for some amount of time to open or close a claw on the robot arm.
Generate the code for the project
Verity that the C++ WindRiver workspace location is set properly (1) and generate code for the C++ robot project (2).
Import the project into WindRiver Workbench
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.
Viewing the imported project
You can view the project in the project explorer by double-clicking on the project name in the project explorer. From there you can see all the project files. Your subsystems are in the Subsystems folder and the commands are in the Commands folder.