Skip to content

Commit

Permalink
Final 2024 code depending on TagalongLib (#1)
Browse files Browse the repository at this point in the history
Final 2024 code using TagalongLib rather than locally developed functionality.

Co-authored-by: Space Cookies <[email protected]>
Co-authored-by: Aleena <[email protected]>
Co-authored-by: Sonali <[email protected]>
Co-authored-by: Sophie <[email protected]>
Co-authored-by: Valerie <[email protected]>
Co-authored-by: Amanda <[email protected]>
Co-authored-by: Anika <[email protected]>
Co-authored-by: Kristen <[email protected]>
Co-authored-by: Prisha <[email protected]>
Co-authored-by: Aariana <[email protected]>
Co-authored-by: Anh <[email protected]>
Co-authored-by: Jaanvi <[email protected]>
Co-authored-by: Kara <[email protected]>
Co-authored-by: Tanvi <[email protected]>
  • Loading branch information
15 people authored Jan 3, 2025
1 parent 472f94f commit 1b00323
Show file tree
Hide file tree
Showing 284 changed files with 105,193 additions and 1 deletion.
227 changes: 227 additions & 0 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,227 @@
BasedOnStyle: Google

Language: Java
AccessModifierOffset: -1
AlignAfterOpenBracket: BlockIndent
AlignArrayOfStructures: None
AlignConsecutiveAssignments: false
AlignConsecutiveBitFields: false
AlignConsecutiveDeclarations: false
AlignConsecutiveMacros: false
AlignEscapedNewlines: Left
AlignOperands: DontAlign
AlignTrailingComments: false
AllowAllArgumentsOnNextLine: true
AllowAllParametersOfDeclarationOnNextLine: true
AllowShortEnumsOnASingleLine: true
AllowShortBlocksOnASingleLine: Never
AllowShortCaseLabelsOnASingleLine: false
AllowShortFunctionsOnASingleLine: Empty
AllowShortLambdasOnASingleLine: All
AllowShortIfStatementsOnASingleLine: Never
AllowShortLoopsOnASingleLine: true
AlwaysBreakAfterDefinitionReturnType: None
AlwaysBreakAfterReturnType: None
AlwaysBreakBeforeMultilineStrings: false
AlwaysBreakTemplateDeclarations: Yes
AttributeMacros:
- __capability
BinPackArguments: false
BinPackParameters: false
BraceWrapping:
AfterCaseLabel: false
AfterClass: false
AfterControlStatement: Never
AfterEnum: false
AfterFunction: false
AfterNamespace: false
AfterObjCDeclaration: false
AfterStruct: false
AfterUnion: false
AfterExternBlock: false
BeforeCatch: false
BeforeElse: false
BeforeLambdaBody: false
BeforeWhile: false
IndentBraces: false
SplitEmptyFunction: true
SplitEmptyRecord: true
SplitEmptyNamespace: true
BreakBeforeBinaryOperators: NonAssignment
BreakBeforeConceptDeclarations: true
BreakBeforeBraces: Attach
BreakBeforeInheritanceComma: false
BreakInheritanceList: BeforeColon
BreakBeforeTernaryOperators: true
BreakConstructorInitializersBeforeComma: false
BreakConstructorInitializers: BeforeColon
BreakAfterJavaFieldAnnotations: false
BreakStringLiterals: true
ColumnLimit: 100
CommentPragmas: '^ IWYU pragma:'
QualifierAlignment: Leave
CompactNamespaces: false
ConstructorInitializerIndentWidth: 4
ContinuationIndentWidth: 4
Cpp11BracedListStyle: true
DeriveLineEnding: true
DerivePointerAlignment: true
DisableFormat: false
EmptyLineAfterAccessModifier: Never
EmptyLineBeforeAccessModifier: LogicalBlock
ExperimentalAutoDetectBinPacking: false
PackConstructorInitializers: NextLine
ConstructorInitializerAllOnOneLineOrOnePerLine: false
AllowAllConstructorInitializersOnNextLine: true
FixNamespaceComments: true
ForEachMacros:
- foreach
- Q_FOREACH
- BOOST_FOREACH
IfMacros:
- KJ_IF_MAYBE
IncludeBlocks: Regroup
IncludeCategories:
- Regex: '^<ext/.*\.h>'
Priority: 2
SortPriority: 0
CaseSensitive: false
- Regex: '^<.*\.h>'
Priority: 1
SortPriority: 0
CaseSensitive: false
- Regex: '^<.*'
Priority: 2
SortPriority: 0
CaseSensitive: false
- Regex: '.*'
Priority: 3
SortPriority: 0
CaseSensitive: false
IncludeIsMainRegex: '([-_](test|unittest))?$'
IncludeIsMainSourceRegex: ''
IndentAccessModifiers: false
IndentCaseLabels: true
IndentCaseBlocks: false
IndentGotoLabels: true
IndentPPDirectives: None
IndentExternBlock: AfterExternBlock
IndentRequires: true
IndentWidth: 2
IndentWrappedFunctionNames: false
# InsertBraces: false
InsertTrailingCommas: None
JavaScriptQuotes: Leave
JavaScriptWrapImports: true
KeepEmptyLinesAtTheStartOfBlocks: false
LambdaBodyIndentation: Signature
MacroBlockBegin: ''
MacroBlockEnd: ''
MaxEmptyLinesToKeep: 1
NamespaceIndentation: None
ObjCBinPackProtocolList: Never
ObjCBlockIndentWidth: 2
ObjCBreakBeforeNestedBlockParam: true
ObjCSpaceAfterProperty: false
ObjCSpaceBeforeProtocolList: true
PenaltyBreakAssignment: 2
PenaltyBreakBeforeFirstCallParameter: 1
PenaltyBreakComment: 300
PenaltyBreakFirstLessLess: 120
PenaltyBreakOpenParenthesis: 0
PenaltyBreakString: 1000
PenaltyBreakTemplateDeclaration: 10
PenaltyExcessCharacter: 1000000
PenaltyReturnTypeOnItsOwnLine: 200
PenaltyIndentedWhitespace: 0
PointerAlignment: Left
PPIndentWidth: -1
RawStringFormats:
- Language: Cpp
Delimiters:
- cc
- CC
- cpp
- Cpp
- CPP
- 'c++'
- 'C++'
CanonicalDelimiter: ''
BasedOnStyle: google
- Language: TextProto
Delimiters:
- pb
- PB
- proto
- PROTO
EnclosingFunctions:
- EqualsProto
- EquivToProto
- PARSE_PARTIAL_TEXT_PROTO
- PARSE_TEST_PROTO
- PARSE_TEXT_PROTO
- ParseTextOrDie
- ParseTextProtoOrDie
- ParseTestProto
- ParsePartialTestProto
CanonicalDelimiter: pb
BasedOnStyle: google
ReferenceAlignment: Pointer
ReflowComments: true
RemoveBracesLLVM: false
# RequiresClausePosition: OwnLine
SeparateDefinitionBlocks: Leave
ShortNamespaceLines: 1
SortIncludes: CaseSensitive
SortJavaStaticImport: Before
SortUsingDeclarations: true
SpaceAfterCStyleCast: true
SpaceAfterLogicalNot: false
SpaceAfterTemplateKeyword: true
SpaceBeforeAssignmentOperators: true
SpaceBeforeCaseColon: false
SpaceBeforeCpp11BracedList: false
SpaceBeforeCtorInitializerColon: true
SpaceBeforeInheritanceColon: true
SpaceBeforeParens: ControlStatements
SpaceBeforeParensOptions:
AfterControlStatements: true
AfterForeachMacros: true
AfterFunctionDefinitionName: false
AfterFunctionDeclarationName: false
AfterIfMacros: true
AfterOverloadedOperator: false
# AfterRequiresInClause: false
# AfterRequiresInExpression: false
BeforeNonEmptyParentheses: false
SpaceAroundPointerQualifiers: Default
SpaceBeforeRangeBasedForLoopColon: true
SpaceInEmptyBlock: false
SpaceInEmptyParentheses: false
SpacesBeforeTrailingComments: 1
SpacesInAngles: Never
SpacesInConditionalStatement: false
SpacesInContainerLiterals: true
SpacesInCStyleCastParentheses: false
SpacesInLineCommentPrefix:
Minimum: 1
Maximum: -1
SpacesInParentheses: false
SpacesInSquareBrackets: false
SpaceBeforeSquareBrackets: false
BitFieldColonSpacing: Both
Standard: Auto
StatementAttributeLikeMacros:
- Q_EMIT
StatementMacros:
- Q_UNUSED
- QT_REQUIRE_VERSION
TabWidth: 4
UseCRLF: false
UseTab: Never
WhitespaceSensitiveMacros:
- STRINGIZE
- PP_STRINGIZE
- BOOST_PP_STRINGIZE
- NS_SWIFT_NAME
- CF_SWIFT_NAME
16 changes: 16 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
@team1868/2024reviewers

*.h @team1868/2024reviewers
*.java @team1868/2024reviewers
*.cpp @team1868/2024reviewers
src/ @team1868/2024reviewers
vendordeps/ @team1868/2024reviewers

*.yaml @team1868/2024reviewers
*.txt @team1868/2024reviewers
gradle/ @team1868/2024reviewers
.github/ @team1868/2024reviewers
.wpilib/ @team1868/2024reviewers
.vscode/ @team1868/2024reviewers
.clang-format @team1868/2024reviewers
.gitignore @team1868/2024reviewers
10 changes: 10 additions & 0 deletions .github/ISSUE_TEMPLATE/command-group.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
name: Command group
about: Add a grouping of commands for complex functionality
title: Add <Command name> for <function>
labels: ''
assignees: ''

---


10 changes: 10 additions & 0 deletions .github/ISSUE_TEMPLATE/command.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
name: Command
about: Add a base command to the robot
title: Add <Command name> for <Subsystem>
labels: ''
assignees: ''

---


10 changes: 10 additions & 0 deletions .github/ISSUE_TEMPLATE/configuration.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
name: Configuration
about: Add or tune a configuration
title: "<Configure || Tune> <Subsystem> <what is being configured or set>"
labels: ''
assignees: ''

---


10 changes: 10 additions & 0 deletions .github/ISSUE_TEMPLATE/subsystem-functionality.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
name: Subsystem functionality
about: Add a functionality to a subsystem
title: Add <functionality> to <subsystem>
labels: ''
assignees: ''

---


42 changes: 42 additions & 0 deletions .github/templates/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
## Label template directory

Style guide: https://docs.google.com/document/d/1WuY5wWGJLnJvZWReWLSVGsFmB0r_jXAS9LVLu90_P8g/edit?usp=sharing

Start working on a new repo
- Clone
- Pre-commit install
- Update xyz
- First pull request merged, add name to contributors

Start working on a new branch with your feature
In Terminal/Command Prompt,

git fetch
git checkout origin/main
git checkout -b <YourName>/<branchname>

- Fetch latest main
- Checkout branch you want to work off of–usually main
- Checkout your new branch

git status
git add path/To/File // looks like that or the + button in the vs code interface
// if you want to add everything, use git add * or git add src/
git commit -m “your commit message”
git push

- Check what files have changed and double check your branch. If a strange file has been changed that you have not touched, make sure to check the difference using ‘git diff’.
- Add code to commit
- Commit code
- Push branch--if it is a new branch, the git push will fail and there will be a branch specific command to push the new branch to github


This directory contains templates used in the `add-template-to-issue.yml` workflow

Each template must have a filename of `label-<name of label>.md` to automatically be applied to a label of that name

For example, if you would like to add a template to an issue when the `badbug` label is applied, add a file in this directory called

`label-badbug.md`

The template will be added as a new comment as to avoid muddling existing comments
12 changes: 12 additions & 0 deletions .github/templates/label-base_command.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
Level 3 time estimate: ## minutes

## Please answer these questions before starting to code

- What subsystem does this command use?
- Is the subsystem a subsystem requirement for the command?
- Where/when will this command be used?
- What does this command do generally?
- What does this command logically do on initialization?
- What does this command logically do during each execution loop?
- When (if ever) is this command done?
- What does this command do when it is done?
12 changes: 12 additions & 0 deletions .github/templates/label-complex_command.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
Level 3 time estimate: ## minutes

## Please answer these questions before starting to code

- What subsystems does this command use?
- Which of the subsystems is a requirement for the command?
- Where/when will this command be used?
- What does this command do generally?
- What does this command logically do on initialization?
- What does this command logically do during each execution loop?
- When (if ever) is this command done?
- What does this command do when it is done?
10 changes: 10 additions & 0 deletions .github/templates/label-compound_command.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Level 3 time estimate: ## minutes

## Please answer these questions before starting to code

- What subsystems does this command use?
- Which of the subsystems is a requirement for the command?
- What does this command do generally?
- Where/when will this command be used?
- What commands does this command use?
- Give a brief explanation of the progression of commands
12 changes: 12 additions & 0 deletions .github/templates/label-path_command.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
Level 3 time estimate: ## minutes

## Please answer these questions before starting to code

- What subsystems does this command use?
- Which of the subsystems is a requirement for the command?
- What does this command do generally?
- Where/when will this command be used?
- What commands does this command use?
- Give a brief explanation of the progression of commands
- Is this an alliance specific command? Which alliance?
- List and label the primary waypoints used in this command.
8 changes: 8 additions & 0 deletions .github/templates/label-subsystem_functionality.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Level 3 time estimate: ## minutes

## Please answer these questions before starting to code

- What subsystem does is this functionality for?
- Where will this functionality be used?
- Does this function take any sensor values as arguments?
- Does this function take any other parameters as arguments?
Loading

0 comments on commit 1b00323

Please sign in to comment.