Skip to content

Commit

Permalink
Fixed a POV Value
Browse files Browse the repository at this point in the history
Typo "FlyWJoystick.getPOV() == >>>215<<<" has been corrected to "FlyWJoystick.getPOV() == >>>315<<<" in FlyWCommand.java. Additionally, some completed //TODO's have been cleared due to completion of their task in previous commits.
  • Loading branch information
EuphoniumPlayer committed Mar 8, 2024
1 parent 3c9240e commit d1c991a
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
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": "2024-Robot"
},
{
"type": "wpilib",
"name": "WPILib Desktop Debug",
"request": "launch",
"desktop": true,
"desktop": true
},
{
"type": "wpilib",
"name": "WPILib roboRIO Debug",
"request": "launch",
"desktop": false,
"desktop": false
}
]
}
1 change: 0 additions & 1 deletion src/main/java/frc/robot/commands/ConveyorCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ public void initialize() {}
public void execute() {
if (ConveyorJoystick.getRawButton(5) == true | ConveyorJoystick.getRawButton(3) == true) {
m_ConveyorSubsystem.enableConveyor();
// TODO: Change this to the correct button
} else if (ConveyorJoystick.getRawButton(6) == true | ConveyorJoystick.getRawButton(4)) {
m_ConveyorSubsystem.reverseConveyor();
System.out.println("Conveyor Moving in Reverse");
Expand Down
2 changes: 0 additions & 2 deletions src/main/java/frc/robot/commands/DumpControl.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,8 @@ public void initialize() {}
// Called every time the scheduler runs while the command is scheduled.
@Override
public void execute() {
// TODO: Change this to the correct button
if (DumpJoystick.getRawButton(1)) {
DumpSubsystem.open();
// TODO: Change this to the correct button
} else if (DumpJoystick.getRawButton(2)) {
DumpSubsystem.close();
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/frc/robot/commands/FlyWCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public void initialize() {}

@Override
public void execute() {
if (FlyWJoystick.getPOV() == 215 | FlyWJoystick.getPOV() == 0 | FlyWJoystick.getPOV() == 45) {
if (FlyWJoystick.getPOV() == 315 | FlyWJoystick.getPOV() == 0 | FlyWJoystick.getPOV() == 45) {
m_FlyWSubsystem.enableflywheelfull();
} else if (FlyWJoystick.getPOV() == 225 | FlyWJoystick.getPOV() == 180 | FlyWJoystick.getPOV() == 135) {
m_FlyWSubsystem.enableflywheellow();
Expand Down

0 comments on commit d1c991a

Please sign in to comment.