Skip to content

Commit

Permalink
Task 8 Completion
Browse files Browse the repository at this point in the history
  • Loading branch information
InfinityJuice committed Oct 12, 2024
1 parent 367a443 commit 7dd3f52
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/frc/robot/commands/ServoCommands.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ public class ServoCommands {
public static Command servoAdjustAngleCommand(double adjustAmount) {
return new RunCommand(
() -> hiIhopeThisWorks.adjustAngleBy(adjustAmount)
//() -> frc.robot.subsystems.Servo.m_armServo.adjustAngleBy(5)
//note to self: if hiIhopeThisWorks doesn't work, then do ^^^ and change m_armServo to public
);
}

Expand Down
3 changes: 3 additions & 0 deletions src/main/java/frc/robot/subsystems/Rangefinder.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,7 @@ public Rangefinder(){
}
//TODO: Task 8-Write a method to get the distance returned by the sensor in inches.
//HINT: Type 'm_rangefinder.' (without quotes) in a method body to see all of the different methods the rangefinder has.
public double findRange() {
return(m_rangefinder.getDistanceInches());
}
}

0 comments on commit 7dd3f52

Please sign in to comment.