Skip to content

Commit

Permalink
Task 5 Completion
Browse files Browse the repository at this point in the history
  • Loading branch information
Saanvi Korem committed Oct 24, 2024
1 parent b9af913 commit 7b271f7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/main/java/frc/robot/subsystems/Servo.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,10 @@ public Servo(){
//TODO: Task 5-Write functions to control the arm. You should be able to set the arm's angle and get the angle
//it is at.
//HINT: Type 'm_armServo.' (without quotes) in a method body to see all of the different methods the servo has.
public void setArmAngle(double angle){
m_armServo.setAngle(angle);
}
public double getArmAngle(){
return m_armServo.getAngle();
}
}

0 comments on commit 7b271f7

Please sign in to comment.