From 2bc4b0d8f75675b449a21c3d95a6b052fde83b06 Mon Sep 17 00:00:00 2001 From: Vansh-Sai Date: Wed, 4 Jun 2025 19:08:05 -0400 Subject: [PATCH 1/4] Fixed gitIgnore --- .gitignore | 187 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 187 insertions(+) diff --git a/.gitignore b/.gitignore index e69de29..34cbaac 100644 --- a/.gitignore +++ b/.gitignore @@ -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 From 543a2fc49d0b5316744b9e16ab6cbb3244a59b0b Mon Sep 17 00:00:00 2001 From: Vansh-Sai Date: Wed, 4 Jun 2025 19:16:11 -0400 Subject: [PATCH 2/4] j --- .gradle/8.11/fileHashes/fileHashes.bin | Bin 22897 -> 22947 bytes .gradle/8.11/fileHashes/fileHashes.lock | Bin 17 -> 17 bytes .../robot/subsystems/DriveTrainSubsystem.java | 46 ++++++++++++++++++ 3 files changed, 46 insertions(+) create mode 100644 src/main/java/frc/robot/subsystems/DriveTrainSubsystem.java diff --git a/.gradle/8.11/fileHashes/fileHashes.bin b/.gradle/8.11/fileHashes/fileHashes.bin index 36286ad92895563f080172a6a2f0ee3c76ac90cd..5b5f035c405b40da3466060bf0566eae1f6f2bf9 100644 GIT binary patch delta 104 zcmeykiE;5}#tkMCjFFp7B^Iy>C|vk`C*Ng{DFYZp7H&Q(yP1hGbED!9@r?!>_%}Ox x7zi2}10^+qSP_H;QYzjHE3mI}xEnsL;Iz3M3j+h=bX&8N9AFa|T%>`t9st{G9E<<} delta 36 ucmV+<0NekgvjOq40kAX}0a&v&7@!5S?H#KE0a39b_!qG-$PcqYNH7r%APvX> diff --git a/.gradle/8.11/fileHashes/fileHashes.lock b/.gradle/8.11/fileHashes/fileHashes.lock index 44cf798145714dac88d881455beab156735dbb32..045ff0dd11233d76506b892d9abf60fff8313e2b 100644 GIT binary patch literal 17 UcmZRU)D-$BUSD{O0Rj#K03^u+<^TWy literal 17 UcmZRU)D-$BUSD{O0Rj#H03^l(;{X5v diff --git a/src/main/java/frc/robot/subsystems/DriveTrainSubsystem.java b/src/main/java/frc/robot/subsystems/DriveTrainSubsystem.java new file mode 100644 index 0000000..1443484 --- /dev/null +++ b/src/main/java/frc/robot/subsystems/DriveTrainSubsystem.java @@ -0,0 +1,46 @@ +// Copyright (c) FIRST and other WPILib contributors. +// Open Source Software; you can modify and/or share it under the terms of +// the WPILib BSD license file in the root directory of this project. + +package frc.robot.subsystems; + +import edu.wpi.first.wpilibj2.command.Command; +import edu.wpi.first.wpilibj2.command.SubsystemBase; + +public class ExampleSubsystem extends SubsystemBase { + /** Creates a new ExampleSubsystem. */ + public SparkMax RightMaster; + public SparkMax LeftMaster; + public SparkMax RightSlave + public SparkMax LeftSlave; + public ExampleSubsystem() {} + + /** + * Example command factory method. + * + * @return a command + */ + public void SetSpeed(int leftSpeed, int rightSpeed){ + + } + + /** + * An example method querying a boolean state of the subsystem (for example, a digital sensor). + * + * @return value of some boolean subsystem state, such as a digital sensor. + */ + public boolean exampleCondition() { + // Query some boolean state, such as a digital sensor. + return false; + } + + @Override + public void periodic() { + // This method will be called once per scheduler run + } + + @Override + public void simulationPeriodic() { + // This method will be called once per scheduler run during simulation + } +} From 231303e4b00ddb09587a9fe013d3d53fc79b4c25 Mon Sep 17 00:00:00 2001 From: Vansh-Sai Date: Wed, 4 Jun 2025 19:18:02 -0400 Subject: [PATCH 3/4] Update fileHashes.lock --- .gradle/8.11/fileHashes/fileHashes.lock | Bin 17 -> 17 bytes 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/.gradle/8.11/fileHashes/fileHashes.lock b/.gradle/8.11/fileHashes/fileHashes.lock index 045ff0dd11233d76506b892d9abf60fff8313e2b..099bbe6edf35cd156c2057c6204faa895220b841 100644 GIT binary patch literal 17 UcmZRU)D-$BUSD{O0RoN!03^!;=l}o! literal 17 UcmZRU)D-$BUSD{O0Rj#K03^u+<^TWy From 5d4c742523d6ca7bb726804b7eb5312297611937 Mon Sep 17 00:00:00 2001 From: Vansh-Sai Date: Wed, 4 Jun 2025 19:24:39 -0400 Subject: [PATCH 4/4] ss --- .../robot/subsystems/DriveTrainSubsystem.java | 11 +-- vendordeps/REVLib.json | 71 +++++++++++++++++++ 2 files changed, 78 insertions(+), 4 deletions(-) create mode 100644 vendordeps/REVLib.json diff --git a/src/main/java/frc/robot/subsystems/DriveTrainSubsystem.java b/src/main/java/frc/robot/subsystems/DriveTrainSubsystem.java index 1443484..f75d38b 100644 --- a/src/main/java/frc/robot/subsystems/DriveTrainSubsystem.java +++ b/src/main/java/frc/robot/subsystems/DriveTrainSubsystem.java @@ -7,13 +7,15 @@ import edu.wpi.first.wpilibj2.command.Command; import edu.wpi.first.wpilibj2.command.SubsystemBase; -public class ExampleSubsystem extends SubsystemBase { +public class DrivetrainSubsystem extends SubsystemBase { /** Creates a new ExampleSubsystem. */ public SparkMax RightMaster; public SparkMax LeftMaster; - public SparkMax RightSlave + public SparkMax RightSlave; public SparkMax LeftSlave; - public ExampleSubsystem() {} + public DrivetrainSubsystem() { + + } /** * Example command factory method. @@ -21,7 +23,8 @@ public ExampleSubsystem() {} * @return a command */ public void SetSpeed(int leftSpeed, int rightSpeed){ - + LeftMaster.set(leftSpeed); + RightMaster.set(rightSpeed); } /** diff --git a/vendordeps/REVLib.json b/vendordeps/REVLib.json new file mode 100644 index 0000000..ac62be8 --- /dev/null +++ b/vendordeps/REVLib.json @@ -0,0 +1,71 @@ +{ + "fileName": "REVLib.json", + "name": "REVLib", + "version": "2025.0.3", + "frcYear": "2025", + "uuid": "3f48eb8c-50fe-43a6-9cb7-44c86353c4cb", + "mavenUrls": [ + "https://maven.revrobotics.com/" + ], + "jsonUrl": "https://software-metadata.revrobotics.com/REVLib-2025.json", + "javaDependencies": [ + { + "groupId": "com.revrobotics.frc", + "artifactId": "REVLib-java", + "version": "2025.0.3" + } + ], + "jniDependencies": [ + { + "groupId": "com.revrobotics.frc", + "artifactId": "REVLib-driver", + "version": "2025.0.3", + "skipInvalidPlatforms": true, + "isJar": false, + "validPlatforms": [ + "windowsx86-64", + "linuxarm64", + "linuxx86-64", + "linuxathena", + "linuxarm32", + "osxuniversal" + ] + } + ], + "cppDependencies": [ + { + "groupId": "com.revrobotics.frc", + "artifactId": "REVLib-cpp", + "version": "2025.0.3", + "libName": "REVLib", + "headerClassifier": "headers", + "sharedLibrary": false, + "skipInvalidPlatforms": true, + "binaryPlatforms": [ + "windowsx86-64", + "linuxarm64", + "linuxx86-64", + "linuxathena", + "linuxarm32", + "osxuniversal" + ] + }, + { + "groupId": "com.revrobotics.frc", + "artifactId": "REVLib-driver", + "version": "2025.0.3", + "libName": "REVLibDriver", + "headerClassifier": "headers", + "sharedLibrary": false, + "skipInvalidPlatforms": true, + "binaryPlatforms": [ + "windowsx86-64", + "linuxarm64", + "linuxx86-64", + "linuxathena", + "linuxarm32", + "osxuniversal" + ] + } + ] +} \ No newline at end of file