From 2f09f665724d376cfafc9b712b4515317cb9b13a Mon Sep 17 00:00:00 2001 From: Wardah Saeed Date: Thu, 24 Oct 2024 17:23:01 -0400 Subject: [PATCH] Task 5 Completion --- src/main/java/frc/robot/subsystems/Servo.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main/java/frc/robot/subsystems/Servo.java b/src/main/java/frc/robot/subsystems/Servo.java index 8bd4bdb..27ab47b 100644 --- a/src/main/java/frc/robot/subsystems/Servo.java +++ b/src/main/java/frc/robot/subsystems/Servo.java @@ -14,5 +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(); + } }