Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
e9f407b
Moved some projects into the github - Henry
Jan 13, 2025
7cc027f
A bunch of stuff added all at once
Dreadfall Feb 13, 2025
fc3af96
Ben: These files should not be checked in
Dreadfall Feb 13, 2025
8c9786b
One more file type to ignore and remove
Dreadfall Feb 13, 2025
d89d4a6
Merge branch 'main' of https://github.com/Sting-R/FRC-Team-5098
Dreadfall Feb 13, 2025
8ed7970
Edited some of the auxillary controls
Dreadfall Feb 14, 2025
6f941a1
Test Bed code - H
Dreadfall Feb 15, 2025
cd07ae6
Merge pull request #13 from Sting-R:TempElevatorMergeBranch
Dreadfall Feb 15, 2025
936053d
Last merge didn't work (trying to open merge page between files) - H
Dreadfall Feb 15, 2025
9a1122f
Added Formatter
Dreadfall Feb 15, 2025
e912bff
Added Limelight Functionality - H
Dreadfall Feb 15, 2025
d012959
Pathplanner update - H
Dreadfall Feb 15, 2025
0c7460b
Adjusted elevator commands and the buttons for each subsystem to fit …
Dreadfall Feb 17, 2025
439379a
merged feature-a
Dreadfall Feb 17, 2025
66fd000
Fixed some elevator errors after the merge -H
Dreadfall Feb 17, 2025
c540743
Removed some example classes that were left from creating the project -H
Dreadfall Feb 17, 2025
2bfb477
Changed some controls to better fit Vy's preferences, also adjusted t…
Dreadfall Feb 17, 2025
3a224e7
Got rid of test encoder in Elevator Subsystem, plus some mic. changes…
Dreadfall Feb 17, 2025
ad9fe33
Added some of the basics of Maple Sim (error popping up tho with norm…
Dreadfall Feb 17, 2025
f88f653
Adjusted some variables of the Maplesim class, but normal sim works, …
Dreadfall Feb 17, 2025
2cd5807
Added Limelight auto aim functionality -- needs testing - H
Dreadfall Feb 17, 2025
28221aa
robot changed - me
Dreadfall Feb 21, 2025
7d6c2ec
Sim GUI adjustments and Small Pathplanner example
Dreadfall Feb 22, 2025
b22fccc
Change some swerve drive variables to constants
Dreadfall Feb 22, 2025
e5a780b
Created logging class for the robot
Dreadfall Feb 22, 2025
b47c796
Updated drivetrain constant name
Dreadfall Feb 22, 2025
c90e682
Updated Drivetrain constants name
Dreadfall Feb 22, 2025
9245374
Added climber subsystem and triggers. Also added logger to elevator s…
Dreadfall Feb 22, 2025
3e6034f
Edits to elevator code, fixed some errors, works in simulation now
Dreadfall Feb 22, 2025
99997aa
Changed subsystems to directly import constants, also removed some un…
Dreadfall Feb 23, 2025
d741151
Remove superlinter from workflows, will re-add later on
J-The-Fox Feb 24, 2025
0d3395d
Added gradle-build workflow, needs changed before merging though
J-The-Fox Feb 24, 2025
9ec2ccc
Removed old build workflow
J-The-Fox Feb 24, 2025
4e02dd2
Updated permissions for gradlew.
J-The-Fox Feb 24, 2025
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
59 changes: 59 additions & 0 deletions .github/workflows/gradle-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
# Gradle workflow to build the current project and generate a dependency graph for Dependabot Alerts.

name: Gradle Dependencies and Build

on:
push:
branches: [ "2025MainBranch" ] # Change to "main" when merged
pull_request:
branches: [ "2025MainBranch" ] # Change to "main" when merged

jobs:
build:

runs-on: ubuntu-latest
permissions:
contents: read

steps:
- uses: actions/checkout@v4
# Set up Java 17 JDK since the WPILib provided one isn't installed on this runner
# This will most likely change for a self-hosted runner
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'

# Configure Gradle for optimal use in GitHub Actions, including caching of downloaded dependencies.
# See: https://github.com/gradle/actions/blob/main/setup-gradle/README.md
- name: Setup Gradle
uses: gradle/actions/setup-gradle@af1da67850ed9a4cedd57bfd976089dd991e2582 # v4.0.0

- name: Build with Gradle Wrapper
# Set the working directory so gradlew and WPILib are in the right folder
# This will be removed in the future whenever this project is in the root folder
working-directory: ./2024-2025/main-bot
run: ./gradlew build

dependency-submission:

runs-on: ubuntu-latest
permissions:
contents: write

steps:
- uses: actions/checkout@v4

# Set up Java 17 JDK since the WPILib provided one isn't installed on this runner
# This will most likely change for a self-hosted runner
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'

# Generates and submits a dependency graph, enabling Dependabot Alerts for all project dependencies.
# See: https://github.com/gradle/actions/blob/main/dependency-submission/README.md
- name: Generate and submit dependency graph
uses: gradle/actions/dependency-submission@af1da67850ed9a4cedd57bfd976089dd991e2582 # v4.0.0
29 changes: 0 additions & 29 deletions .github/workflows/superlinter.yml

This file was deleted.

36 changes: 0 additions & 36 deletions .github/workflows/wpilib-build.yml

This file was deleted.

34 changes: 33 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# .gitignore
# Ingore File For Git

*.gradle/
*.wpilib/
*bin/

# -----=====[ IDEs ]=====----- #

# VSCode
Expand Down Expand Up @@ -148,9 +152,37 @@ dmypy.json
# Pyre type checker
.pyre/

# -----=====[ 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*
replay_pid*

# -----=====[ Misc ]=====----- #

# MacOS Finder Cache
# >:(
*.DS_Store

*.dat
*.hoot
*.lock
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified 2022-2023/main-bot/bin/main/frc/components/SwerveDrive.class
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified 2022-2023/main-bot/bin/main/frc/robot/Utility.class
Binary file not shown.
Binary file removed 2022-2023/main-bot/gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
Binary file removed 2023-2024/main-bot/gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"enableCppIntellisense": false,
"currentLanguage": "java",
"projectYear": "2024",
"teamNumber": 5098
}
24 changes: 24 additions & 0 deletions 2024-2025/FreshmanProjectBots/DontOverthinkIt/WPILib-License.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
Copyright (c) 2009-2024 FIRST and other WPILib contributors
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
* Neither the name of FIRST, WPILib, nor the names of other WPILib
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY FIRST AND OTHER WPILIB CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY NONINFRINGEMENT AND FITNESS FOR A PARTICULAR
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL FIRST OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
101 changes: 101 additions & 0 deletions 2024-2025/FreshmanProjectBots/DontOverthinkIt/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
plugins {
id "java"
id "edu.wpi.first.GradleRIO" version "2024.2.1"
}

java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}

def ROBOT_MAIN_CLASS = "frc.robot.Main"

// Define my targets (RoboRIO) and artifacts (deployable files)
// This is added by GradleRIO's backing project DeployUtils.
deploy {
targets {
roborio(getTargetTypeClass('RoboRIO')) {
// Team number is loaded either from the .wpilib/wpilib_preferences.json
// or from command line. If not found an exception will be thrown.
// You can use getTeamOrDefault(team) instead of getTeamNumber if you
// want to store a team number in this file.
team = project.frc.getTeamNumber()
debug = project.frc.getDebugOrDefault(false)

artifacts {
// First part is artifact name, 2nd is artifact type
// getTargetTypeClass is a shortcut to get the class type using a string

frcJava(getArtifactTypeClass('FRCJavaArtifact')) {
}

// Static files artifact
frcStaticFileDeploy(getArtifactTypeClass('FileTreeArtifact')) {
files = project.fileTree('src/main/deploy')
directory = '/home/lvuser/deploy'
}
}
}
}
}

def deployArtifact = deploy.targets.roborio.artifacts.frcJava

// Set to true to use debug for JNI.
wpi.java.debugJni = false

// Set this to true to enable desktop support.
def includeDesktopSupport = false

// Defining my dependencies. In this case, WPILib (+ friends), and vendor libraries.
// Also defines JUnit 5.
dependencies {
implementation wpi.java.deps.wpilib()
implementation wpi.java.vendor.java()

roborioDebug wpi.java.deps.wpilibJniDebug(wpi.platforms.roborio)
roborioDebug wpi.java.vendor.jniDebug(wpi.platforms.roborio)

roborioRelease wpi.java.deps.wpilibJniRelease(wpi.platforms.roborio)
roborioRelease wpi.java.vendor.jniRelease(wpi.platforms.roborio)

nativeDebug wpi.java.deps.wpilibJniDebug(wpi.platforms.desktop)
nativeDebug wpi.java.vendor.jniDebug(wpi.platforms.desktop)
simulationDebug wpi.sim.enableDebug()

nativeRelease wpi.java.deps.wpilibJniRelease(wpi.platforms.desktop)
nativeRelease wpi.java.vendor.jniRelease(wpi.platforms.desktop)
simulationRelease wpi.sim.enableRelease()

testImplementation 'org.junit.jupiter:junit-jupiter:5.10.1'
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
}

test {
useJUnitPlatform()
systemProperty 'junit.jupiter.extensions.autodetection.enabled', 'true'
}

// Simulation configuration (e.g. environment variables).
wpi.sim.addGui().defaultEnabled = true
wpi.sim.addDriverstation()

// Setting up my Jar File. In this case, adding all libraries into the main jar ('fat jar')
// in order to make them all available at runtime. Also adding the manifest so WPILib
// knows where to look for our Robot Class.
jar {
from { configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) } }
from sourceSets.main.allSource
manifest edu.wpi.first.gradlerio.GradleRIOPlugin.javaManifest(ROBOT_MAIN_CLASS)
duplicatesStrategy = DuplicatesStrategy.INCLUDE
}

// Configure jar and deploy tasks
deployArtifact.jarTask = jar
wpi.java.configureExecutableTasks(jar)
wpi.java.configureTestTasks(test)

// Configure string concat to always inline compile
tasks.withType(JavaCompile) {
options.compilerArgs.add '-XDstringConcat=inline'
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=permwrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=permwrapper/dists
Loading
Loading