From e00d3c1cb544e1d8653f7eba67168acd3c4fbe62 Mon Sep 17 00:00:00 2001 From: aaronC34 Date: Sat, 2 Mar 2024 21:58:51 -0800 Subject: [PATCH] added two motors in set volts --- build.gradle | 2 +- src/main/java/org/carlmontrobotics/subsystems/Arm.java | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index d0accaf0..2c872c57 100644 --- a/build.gradle +++ b/build.gradle @@ -1,6 +1,6 @@ plugins { id "java" - id "edu.wpi.first.GradleRIO" version "2024.1.1" + id "edu.wpi.first.GradleRIO" version "2024.3.1" } java { diff --git a/src/main/java/org/carlmontrobotics/subsystems/Arm.java b/src/main/java/org/carlmontrobotics/subsystems/Arm.java index 6d3ff393..a92a1538 100644 --- a/src/main/java/org/carlmontrobotics/subsystems/Arm.java +++ b/src/main/java/org/carlmontrobotics/subsystems/Arm.java @@ -180,6 +180,7 @@ public void resetGoal() { } public void driveMotor(Measure volts) { armMotorMaster.setVoltage(volts.in(Volts)); + armMotorFollower.setVoltage(volts.in(Volts)); } public void logMotor(SysIdRoutineLog log) { log.motor("armMotorMaster")