From 7b271f7b8e21bc8583e289d7cd9a10622ec78754 Mon Sep 17 00:00:00 2001 From: Saanvi Korem Date: Wed, 23 Oct 2024 23:31:30 -0400 Subject: [PATCH] Task 5 Completion --- src/main/java/frc/robot/subsystems/Servo.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/java/frc/robot/subsystems/Servo.java b/src/main/java/frc/robot/subsystems/Servo.java index 7c7e35e..c0e1f61 100644 --- a/src/main/java/frc/robot/subsystems/Servo.java +++ b/src/main/java/frc/robot/subsystems/Servo.java @@ -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(); + } }