You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/programming/new_project.md
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -59,14 +59,16 @@ Newly created projects have many files within them. We only care about the conte
59
59
- An example Command
60
60
-**ExampleSubsystem.java**
61
61
- An example SubSystem
62
-
-**Constants.java**(new in 2020, replaces RobotMap.java)
62
+
-**Constants.java**
63
63
- Used to map physical ports (digital if using the CAN bus) of sensors or devices connected to the robot and assign them a variable name to be used in other parts of the code.
64
64
- This provides flexibility for changing wiring, makes checking the wiring easier, and significantly reduces the number of magic numbers floating around.
65
65
- Can also be used to store generic constant values as variables in the code
66
+
- This gives a unified place to store and modify values that might be used many places in the code, so they only have to be changes once.
67
+
66
68
-**Main.java**
67
69
- Used for advanced programming
68
70
- Will be ignored/left as is for this tutorial
69
-
-**RobotContainer.java**(new in 2020, replaces OI.java)
71
+
-**RobotContainer.java**
70
72
- Used to declare our subsystem
71
73
- Used to create a connection between commands and Operator Interfaces (OI) such as Joysticks or buttons
Copy file name to clipboardExpand all lines: docs/version_control/BasicGit.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -54,7 +54,7 @@ For more information, see the [full reference guide to git commands](https://git
54
54
## Git Log
55
55
56
56
>Git log is a tool to view your history in Git. By default Git Log shows all of the commits in the repository, ordered from newest to oldest. in VSCode, the graph panels shows the Git log/History in a visual way.
57
-

57
+

58
58
59
59
## Github Setup
60
60
@@ -65,7 +65,7 @@ Github is a website that hosts Git repositories. The Robolancers store all of th
65
65
66
66
## Examples
67
67
68
-

68
+

69
69
70
70
- Typing `git add .` then `git commit -m "commit name"` then `git push` is the bread and butter of using Git.
71
71
This sequence tells Git to collect all of your uncommitted changes, commit them, then push them to Github.
@@ -76,22 +76,22 @@ Github is a website that hosts Git repositories. The Robolancers store all of th
76
76
-`git status` displays the current branch and what changes you have uncommitted and staged
77
77
-`git pull` updates the code on your device with the latest code from Github.
78
78
Recommended to do this whenever someone else has been working on the same branch, otherwise you might make conflicting changes
79
-
-[A simple demo video of committing some changes](../assets/GitDemoVideo.mp4)
79
+
-[A simple demo video of committing some changes](../assets/images/vscode_tips/GitDemoVideo.mp4)
80
80
81
81
## Managing Git in Vscode
82
82
83
83
### Git Commands in Vscode GUI
84
84
85
-

85
+

86
86
87
87
### Git branches menu
88
88
89
89
Accessed by clicking on the branch name at the bottom left
90
-

90
+

0 commit comments