PreSeason Create Test Project: Difference between revisions

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

Revision as of 13:15, 9 December 2019

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