PreSeason Create Test Project
From 1511Wookiee
Jump to navigationJump to search
Create a Test Project in FRC IDE
1. Start 'FRC VS Code 2019' (shortcut is on Desktop)
2. Open Command Pallete: either use Ctrl+Shift+P or select from 'View' menu
3. Select 'WPILib: Create a new project'
4. Click button 'Select a project type'
5. Select 'template'
6. For 'Select a language', select 'cpp'
7. For 'Select a project base', select 'Sample Robot'
At this point under 'Welcome to WPILib New Project Creator' you will see:
template cpp Sample Robot
8. Click 'Select a new project folder'
9. Navigate to Desktop (on left under 'Quick access')
10. Click 'New Folder' (on ribbon bar)
11. Enter 'preseason' for the folder's name
12. Click 'Select Folder'
13. For project name enter: test
14. For team number enter: 1511
15. Click 'Generate Project'
16. If prompted with 'Would you like to open the folder?', select 'Yes'
17. If prompted with 'Do you want to save your workspace...?', do the following:
17a. select 'Save'
17b. navigate to Destop
17c. for file name enter: preseason
17d. click Save
17e. for file name enter: preseason
17f. click Save
At this point there will be a 'TEST' folder in the left pain, and in the TERMINAL window it will be doing an initial compile (let it finish). You will see:
'Starting a Gradel Daemon' and the percent going to 100%
18. Open Robot.cpp and Robot.h files:
18a. Expand 'test' (click on arrow next to it)
18b. Expand 'src'
18c. Expand 'main'
18d. Expand 'cpp'
18e. Expand 'include'
18f. Double-click 'Robot.cpp', under 'cpp' (to open it in the middle pane)
18g. Double-click 'Robot.h', under 'include' (to open it in the middle pane)
19. Replace the contents of Robot.cpp and Robot.h
19a. dowload the ZIP file:
http://penfieldrobotics.com/wiki/images/b/bc/Preseason_Initial.zip
19b. in FRC VS Code, in the opened Robot.cpp file, delete contents of Robot.cpp
19c. copy everything from the ZIP's Robot.cpp into into FRC VS Code's Robot.cpp
19d. repeat previous 2 steps for Robot.h
20. Build the project following these steps: Preseason Build Project
1. Start 'FRC VS Code 2019' (shortcut is on Desktop)
2. Open Command Pallete: either use Ctrl+Shift+P or select from 'View' menu
3. Select 'WPILib: Create a new project'
4. Click button 'Select a project type'
5. Select 'template'
6. For 'Select a language', select 'cpp'
7. For 'Select a project base', select 'Sample Robot'
At this point under 'Welcome to WPILib New Project Creator' you will see:
template cpp Sample Robot
8. Click 'Select a new project folder'
9. Navigate to Desktop (on left under 'Quick access')
10. Click 'New Folder' (on ribbon bar)
11. Enter 'preseason' for the folder's name
12. Click 'Select Folder'
13. For project name enter: test
14. For team number enter: 1511
15. Click 'Generate Project'
16. If prompted with 'Would you like to open the folder?', select 'Yes'
17. If prompted with 'Do you want to save your workspace...?', do the following:
17a. select 'Save'
17b. navigate to Destop
17c. for file name enter: preseason
17d. click Save
17e. for file name enter: preseason
17f. click Save
At this point there will be a 'TEST' folder in the left pain, and in the TERMINAL window it will be doing an initial compile (let it finish). You will see:
'Starting a Gradel Daemon' and the percent going to 100%
18. Open Robot.cpp and Robot.h files:
18a. Expand 'test' (click on arrow next to it)
18b. Expand 'src'
18c. Expand 'main'
18d. Expand 'cpp'
18e. Expand 'include'
18f. Double-click 'Robot.cpp', under 'cpp' (to open it in the middle pane)
18g. Double-click 'Robot.h', under 'include' (to open it in the middle pane)
19. Replace the contents of Robot.cpp and Robot.h
19a. dowload the ZIP file:
http://penfieldrobotics.com/wiki/images/b/bc/Preseason_Initial.zip
19b. in FRC VS Code, in the opened Robot.cpp file, delete contents of Robot.cpp
19c. copy everything from the ZIP's Robot.cpp into into FRC VS Code's Robot.cpp
19d. repeat previous 2 steps for Robot.h
20. Build the project following these steps: Preseason Build Project