Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
12 changes: 9 additions & 3 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,24 @@
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [

{
"type": "java",
"name": "Main",
"request": "launch",
"mainClass": "frc.robot.Main",
"projectName": "2026-training"
},
{
"type": "wpilib",
"name": "WPILib Desktop Debug",
"request": "launch",
"desktop": true,
"desktop": true
},
{
"type": "wpilib",
"name": "WPILib roboRIO Debug",
"request": "launch",
"desktop": false,
"desktop": false
}
]
}
48 changes: 48 additions & 0 deletions src/main/java/frc/robot/subsystems/week3CommandNotes.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
Command Scheduler:
- class responsible -> run commands
- schedules commands accordingly
- runs periodic method for each subsystem

Subsystems
- robot organization based off of code
- abstraction of robot hardware -> work together
- restricting access
- single place for code
- access through public methods
- specifc details easily added
- backbond of CommandScheduler's resource organization
- associated with default commands
- basic functionality
- ex: mechanisms, movement

How to create
- abstract class systembase
- need wpilib
- parent class -> easily add components + behaviors
- elevator subsystem
- must be defined
- associated with hardware
- motors + sensors defined through private and final modifiers
- 1:1 correspondence / partnership
- hardware is ALWAYS intialized
- with port #
- methods
- made + get values
- periodic method
- default comamnds

periodic()
- every 20ms
- OPTIONAL
- not CONTROLLING motors

Requirement & Default command:
- 1:1 correspondance between subsystem code + on robot
- ex: one instance of arm subsystem : one arm
- complete one command at a time
- period() method
- no move motor
- always runs
- actions to commands
- no intervention
- subsystem doesnt do anything