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 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.