Skip to content

Commit

Permalink
update to 2025 and better controls
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelLesirge committed Jan 9, 2025
1 parent 03ef7b9 commit f18afb4
Show file tree
Hide file tree
Showing 106 changed files with 4,745 additions and 615,131 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@ name: Build

on:
push:
pull_request:
pull_request: # Finally :)

jobs:
build:
build-gradle-project:
name: Build
runs-on: ubuntu-latest
container: wpilib/roborio-cross-ubuntu:2024-22.04
container: wpilib/roborio-cross-ubuntu:2024-22.04 # Run in a rio like environment
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Grant execute permission
run: chmod +x gradlew
- name: Setup Gradle
uses: gradle/actions/setup-gradle@417ae3ccd767c252f5661f1ace9f835f9654f2b5 # v3.1.0
- name: Build & test robot code
run: ./gradlew test # Run test so unit tests run too
- name: Build robot code
run: ./gradlew build # TODO: Run unit tests once those are set up
26 changes: 18 additions & 8 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# This gitignore has been specially created by the WPILib team.
# Do not remove items from this file, intellisense might break.
# If you remove items from this file, intellisense might break.

### C++ ###
# Prerequisites
Expand Down Expand Up @@ -105,8 +105,7 @@ Temporary Items

### VisualStudioCode ###
.vscode/*
!.vscode/settings.
!.vscode/settings.prefs
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
Expand Down Expand Up @@ -170,10 +169,21 @@ out/
.fleet

# Simulation GUI and other tools window save file
simgui*.json
networktables.json
simgui.json
*-window.json
# why is this not in here by default
simgui-ds.json

# Version file
src/main/java/frc/robot/BuildConstants.java
# Simulation data log directory
logs/

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

# clangd
/.cache
compile_commands.json

# Eclipse generated file for annotation processors
.factorypath
16 changes: 0 additions & 16 deletions .pathplanner/settings.json

This file was deleted.

41 changes: 19 additions & 22 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -1,24 +1,21 @@
{
"version": "0.2.0",
"configurations": [
{
"type": "java",
"name": "test",
"request": "launch",
"mainClass": "test",
"projectName": "preseason2025"
},
{
"type": "wpilib",
"name": "WPILib Desktop Debug",
"request": "launch",
"desktop": true
},
{
"type": "wpilib",
"name": "WPILib roboRIO Debug",
"request": "launch",
"desktop": false
}
]
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [

{
"type": "wpilib",
"name": "WPILib Desktop Debug",
"request": "launch",
"desktop": true,
},
{
"type": "wpilib",
"name": "WPILib roboRIO Debug",
"request": "launch",
"desktop": false,
}
]
}
111 changes: 111 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
{
"java.configuration.updateBuildConfiguration": "automatic",
"java.server.launchMode": "Standard",
"files.exclude": {
"**/.git": true,
"**/.svn": true,
"**/.hg": true,
"**/CVS": true,
"**/.DS_Store": true,
"bin/": true,
"**/.classpath": true,
"**/.project": true,
"**/.settings": true,
"**/.factorypath": true,
"**/*~": true
},
"java.test.config": [
{
"name": "WPIlibUnitTests",
"workingDirectory": "${workspaceFolder}/build/jni/release",
"vmargs": [
"-Djava.library.path=${workspaceFolder}/build/jni/release"
],
"env": {
"LD_LIBRARY_PATH": "${workspaceFolder}/build/jni/release",
"DYLD_LIBRARY_PATH": "${workspaceFolder}/build/jni/release"
}
},
],
"java.test.defaultConfig": "WPIlibUnitTests",
"java.import.gradle.annotationProcessing.enabled": false,
"java.completion.favoriteStaticMembers": [
"org.junit.Assert.*",
"org.junit.Assume.*",
"org.junit.jupiter.api.Assertions.*",
"org.junit.jupiter.api.Assumptions.*",
"org.junit.jupiter.api.DynamicContainer.*",
"org.junit.jupiter.api.DynamicTest.*",
"org.mockito.Mockito.*",
"org.mockito.ArgumentMatchers.*",
"org.mockito.Answers.*",
"edu.wpi.first.units.Units.*"
],
"java.completion.filteredTypes": [
"java.awt.*",
"com.sun.*",
"sun.*",
"jdk.*",
"org.graalvm.*",
"io.micrometer.shaded.*",
"java.beans.*",
"java.util.Base64.*",
"java.util.Timer",
"java.sql.*",
"javax.swing.*",
"javax.management.*",
"javax.smartcardio.*",
"edu.wpi.first.math.proto.*",
"edu.wpi.first.math.**.proto.*",
"edu.wpi.first.math.**.struct.*",
],
"chat.commandCenter.enabled": false,
"editor.formatOnSave": true,
"editor.formatOnType": true,
"spotlessGradle.format.enable": true,
"spotlessGradle.diagnostics.enable": false,
"editor.defaultFormatter": "richardwillis.vscode-spotless-gradle",
"[json]": {
"editor.defaultFormatter": "richardwillis.vscode-spotless-gradle"
},
"[java]": {
"editor.defaultFormatter": "richardwillis.vscode-spotless-gradle"
},
"editor.tabSize": 2,
"editor.insertSpaces": true,
"editor.detectIndentation": false,
"cSpell.words": [
"AHRS",
"apriltag",
"Arducam",
"Brushless",
"cancoder",
"CANFD",
"CANivore",
"Choreo",
"deadband",
"Debouncer",
"Feedforward",
"Holonomic",
"leds",
"Lightstrip",
"Noob",
"odometry",
"Pathfind",
"Pathfinding",
"Pathplanner",
"photonvision",
"Quasistatic",
"Ramsete",
"Robo",
"setpoint",
"setpoints",
"teleop",
"teleoperated",
"wpilibj"
],
"wpilib.selectDefaultSimulateExtension": true,
"[jsonc]": {
"editor.defaultFormatter": "vscode.json-language-features"
},
}
10 changes: 5 additions & 5 deletions .wpilib/wpilib_preferences.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"currentLanguage": "java",
"enableCppIntellisense": false,
"projectYear": "2024",
"teamNumber": 8032
}
"enableCppIntellisense": false,
"currentLanguage": "java",
"projectYear": "2025",
"teamNumber": 8032
}
Loading

0 comments on commit f18afb4

Please sign in to comment.