Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions .github/workflows/copybara.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,8 @@ jobs:
workflow:
- rev_solution
- ctre_solution
# Uncomment the below workflows once the template directories are added to main
# - rev_template
# - ctre_template
- rev_template
- ctre_template

steps:
- name: Checkout
Expand Down
15 changes: 15 additions & 0 deletions copy.bara.sky
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ source_url = "https://github.com/frcsoftware/frcsoftware.org.git"
dest_rev_solution = "https://github.com/frcsoftware/stage1-solution-rev.git"
dest_ctre_solution = "https://github.com/frcsoftware/stage1-solution-ctre.git"

dest_rev_template = "https://github.com/frcsoftware/stage1-template-rev.git"
dest_ctre_template = "https://github.com/frcsoftware/stage1-template-ctre.git"

def create_workflow(name, source_path, dest_url):
core.workflow(
name = name,
Expand Down Expand Up @@ -43,3 +46,15 @@ create_workflow(
source_path = "examples/stage1/solutions/rev",
dest_url = dest_rev_solution
)

create_workflow(
name = "ctre_template",
source_path = "examples/stage1/templates/ctre",
dest_url = dest_ctre_template
)

create_workflow(
name = "rev_template",
source_path = "examples/stage1/templates/rev",
dest_url = dest_rev_template
)
187 changes: 187 additions & 0 deletions examples/stage1/templates/ctre/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,187 @@
# This gitignore has been specially created by the WPILib team.
# If you remove items from this file, intellisense might break.

### C++ ###
# Prerequisites
*.d

# Compiled Object files
*.slo
*.lo
*.o
*.obj

# Precompiled Headers
*.gch
*.pch

# Compiled Dynamic libraries
*.so
*.dylib
*.dll

# Fortran module files
*.mod
*.smod

# Compiled Static libraries
*.lai
*.la
*.a
*.lib

# Executables
*.exe
*.out
*.app

### Java ###
# Compiled class file
*.class

# Log file
*.log

# BlueJ files
*.ctxt

# Mobile Tools for Java (J2ME)
.mtj.tmp/

# Package Files #
*.jar
*.war
*.nar
*.ear
*.zip
*.tar.gz
*.rar

# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*

### Linux ###
*~

# temporary files which can be created if a process still has a handle open of a deleted file
.fuse_hidden*

# KDE directory preferences
.directory

# Linux trash folder which might appear on any partition or disk
.Trash-*

# .nfs files are created when an open file is removed but is still being accessed
.nfs*

### macOS ###
# General
.DS_Store
.AppleDouble
.LSOverride

# Icon must end with two \r
Icon

# Thumbnails
._*

# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent

# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk

### VisualStudioCode ###
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json

### Windows ###
# Windows thumbnail cache files
Thumbs.db
ehthumbs.db
ehthumbs_vista.db

# Dump file
*.stackdump

# Folder config file
[Dd]esktop.ini

# Recycle Bin used on file shares
$RECYCLE.BIN/

# Windows Installer files
*.cab
*.msi
*.msix
*.msm
*.msp

# Windows shortcuts
*.lnk

### Gradle ###
.gradle
/build/

# Ignore Gradle GUI config
gradle-app.setting

# Avoid ignoring Gradle wrapper jar file (.jar files are usually ignored)
!gradle-wrapper.jar

# Cache of project
.gradletasknamecache

# # Work around https://youtrack.jetbrains.com/issue/IDEA-116898
# gradle/wrapper/gradle-wrapper.properties

# # VS Code Specific Java Settings
# DO NOT REMOVE .classpath and .project
.classpath
.project
.settings/
bin/

# IntelliJ
*.iml
*.ipr
*.iws
.idea/
out/

# Fleet
.fleet

# Simulation GUI and other tools window save file
networktables.json
simgui.json
*-window.json

# Simulation data log directory
logs/

# Folder that has CTRE Phoenix Sim device config storage
ctre_sim/

# clangd
/.cache
compile_commands.json

# Eclipse generated file for annotation processors
.factorypath
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"enableCppIntellisense": false,
"currentLanguage": "java",
"projectYear": "2027_alpha5",
"teamNumber": null
}
120 changes: 120 additions & 0 deletions examples/stage1/templates/ctre/AdvantageScopeLayout.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
{
"hubs": [
{
"x": 328,
"y": 194,
"width": 1101,
"height": 652,
"state": {
"sidebar": {
"width": 300,
"expanded": ["/DrivetrainSim"]
},
"tabs": {
"selected": 1,
"tabs": [
{
"type": 0,
"title": "",
"controller": null,
"controllerUUID": "vlfwq7pm9tlj70qdvvq45nifwex34k2g",
"renderer": "",
"controlsHeight": 0
},
{
"type": 1,
"title": "Line Graph",
"controller": {
"leftSources": [
{
"type": "stepped",
"logKey": "NT:/intake/MotorVoltage",
"logType": "Number",
"visible": true,
"options": {
"color": "#2b66a2",
"size": "normal"
}
},
{
"type": "stepped",
"logKey": "NT:/shooter/MotorVoltage",
"logType": "Number",
"visible": true,
"options": {
"color": "#e5b31b",
"size": "normal"
}
}
],
"rightSources": [
{
"type": "stepped",
"logKey": "NT:/intake/MotorVelocity",
"logType": "Number",
"visible": true,
"options": {
"color": "#af2437",
"size": "normal"
}
},
{
"type": "stepped",
"logKey": "NT:/shooter/MotorVelocity",
"logType": "Number",
"visible": true,
"options": {
"color": "#80588e",
"size": "normal"
}
}
],
"discreteSources": [],
"leftLockedRange": null,
"rightLockedRange": null,
"leftUnitConversion": {
"autoTarget": null,
"preset": null
},
"rightUnitConversion": {
"autoTarget": null,
"preset": null
},
"leftFilter": 0,
"rightFilter": 0
},
"controllerUUID": "2htqlla9hnswdie42z4tmy5c6xlm59sh",
"renderer": null,
"controlsHeight": 200
},
{
"type": 2,
"title": "2D Field",
"controller": {
"sources": [
{
"type": "robot",
"logKey": "NT:SimPose",
"logType": "Pose2d",
"visible": true,
"options": {
"bumpers": ""
}
}
],
"field": "FRC:2026 Field",
"orientation": 3,
"size": "large"
},
"controllerUUID": "9ukgi1echibr7o0wodpgms6ajn3yic95",
"renderer": null,
"controlsHeight": 200
}
]
}
}
}
],
"satellites": [],
"version": "27.0.0-alpha-4"
}
19 changes: 19 additions & 0 deletions examples/stage1/templates/ctre/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Stage 1: CTRE Template

This repository contains the template code for the **Stage 1** curriculum using **CTRE** (Cross the Road Electronics) components.

This project is part of the [frcsoftware.org](https://frcsoftware.org) curriculum, designed to help students and mentors learn modern FRC software development.

## Getting Started

- Clone this repository.
- Open the folder in VS Code with the WPILib extension installed.
- Follow the Stage 1 course to build your robot code!

For more details, tutorials, and learning resources, visit the main curriculum at [frcsoftware.org](https://frcsoftware.org).

## Contributing

**Note:** This repository is an automatically generated mirror.
Any issues or pull requests opened here will be closed.
If you would like to contribute, report a bug, or suggest a change, please do so on the main repository at [frcsoftware/frcsoftware.org](https://github.com/frcsoftware/frcsoftware.org).
Loading
Loading