From 37fe1923ad5617dfb434f4162df05204ed1b8bc5 Mon Sep 17 00:00:00 2001 From: Liam Kao Date: Sun, 29 Jun 2025 22:00:32 -0700 Subject: [PATCH 1/2] Added the my notes on the week 3 homework in a .txt file --- .../robot/subsystems/SoftwareWeek3HomeworkNotes.txt | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 src/main/java/frc/robot/subsystems/SoftwareWeek3HomeworkNotes.txt diff --git a/src/main/java/frc/robot/subsystems/SoftwareWeek3HomeworkNotes.txt b/src/main/java/frc/robot/subsystems/SoftwareWeek3HomeworkNotes.txt new file mode 100644 index 0000000..d1632c6 --- /dev/null +++ b/src/main/java/frc/robot/subsystems/SoftwareWeek3HomeworkNotes.txt @@ -0,0 +1,11 @@ +A subsystem a group of code for a multiple pieces of hardware that work together +It is important to restrict access to a subsystem to prevent problems +It is easy to use subsystems using CommandSchedular +Subsystems are for controlling basic functions. Commands put this together to do more complicated things +All subsystems have a lot of basic things in common so its good to put them all in a parent class +Whenever doing an action on a piece of hardware, always do it through the subsystem that contains it + +Periodic() method is what the code runs periodically every cycle. This is for housekeeping tasks. The method is optional. +Never control motors from the periodic method. + +Subsystems only do one thing at a time. From 1ba681ea98cd2fa2ecb6b59b4c081a98339e6a31 Mon Sep 17 00:00:00 2001 From: Liam Kao Date: Wed, 2 Jul 2025 14:53:35 -0700 Subject: [PATCH 2/2] I updated wpilib --- build.gradle | 2 +- src/main/java/frc/robot/subsystems/ArmSubsystem.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index 909d64a..3be07aa 100644 --- a/build.gradle +++ b/build.gradle @@ -1,6 +1,6 @@ plugins { id "java" - id "edu.wpi.first.GradleRIO" version "2025.2.1" + id "edu.wpi.first.GradleRIO" version "2025.3.2" id 'com.diffplug.spotless' version '6.20.0' } diff --git a/src/main/java/frc/robot/subsystems/ArmSubsystem.java b/src/main/java/frc/robot/subsystems/ArmSubsystem.java index 68cae9b..2d3345a 100644 --- a/src/main/java/frc/robot/subsystems/ArmSubsystem.java +++ b/src/main/java/frc/robot/subsystems/ArmSubsystem.java @@ -1 +1 @@ -// Homework for Week 2 \ No newline at end of file +// Homework for Week 2