From 1c44b3c95556cee7cb80e40779ab20286cfb99a1 Mon Sep 17 00:00:00 2001 From: driverstation <5026craptop@gmail.com> Date: Mon, 4 Dec 2023 17:32:18 -0800 Subject: [PATCH] cool --- src/main/java/frc/robot/Constants.java | 7 +++++++ src/main/java/frc/robot/subsystems/WristSubsystem.java | 9 ++------- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/src/main/java/frc/robot/Constants.java b/src/main/java/frc/robot/Constants.java index d926f83..86dfd95 100644 --- a/src/main/java/frc/robot/Constants.java +++ b/src/main/java/frc/robot/Constants.java @@ -26,4 +26,11 @@ public static class Elevator { /** The gear circumferance for distance */ public static final double GEAR_CIRCUMFERENCE = 1.432 * Math.PI; } + public final class Wrist { + public static final int DRIVER_CONTROLLER_PORT = 0; + public static final int WRIST_MOTOR_DEVICE_NUMBER = 16; + public static final double TICKS = 2048; + public static final double DEGREES = 360; + public static final double GEAR_RATIO = 0.061; + } } diff --git a/src/main/java/frc/robot/subsystems/WristSubsystem.java b/src/main/java/frc/robot/subsystems/WristSubsystem.java index fb70688..defb30e 100644 --- a/src/main/java/frc/robot/subsystems/WristSubsystem.java +++ b/src/main/java/frc/robot/subsystems/WristSubsystem.java @@ -1,6 +1,4 @@ -package frc.robot.subsystems; - -public // Copyright (c) FIRST and other WPILib contributors. +// Copyright (c) FIRST and other WPILib contributors. // Open Source Software; you can modify and/or share it under the terms of // the WPILib BSD license file in the root directory of this project. @@ -80,7 +78,4 @@ public void periodic() { // This method will be called once per scheduler run wrist_motor.set(TalonFXControlMode.PercentOutput, -(MathUtil.clamp(motorPower, -0.5, 0.5))); } -} - { - -} +} \ No newline at end of file