From 398dc7d2246c197cee3ca27daa046c0c2ae78a8d Mon Sep 17 00:00:00 2001 From: BennyLi Date: Fri, 30 Aug 2024 13:27:40 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=A8=20Params=20=E4=B8=AD=E5=8A=A0?= =?UTF-8?q?=E5=85=A5=20@Config?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/org/firstinspires/ftc/teamcode/Params.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/TeamCode/src/main/java/org/firstinspires/ftc/teamcode/Params.java b/TeamCode/src/main/java/org/firstinspires/ftc/teamcode/Params.java index 9354323..fbc605d 100644 --- a/TeamCode/src/main/java/org/firstinspires/ftc/teamcode/Params.java +++ b/TeamCode/src/main/java/org/firstinspires/ftc/teamcode/Params.java @@ -3,9 +3,9 @@ import com.acmerobotics.dashboard.config.Config; @Config -public final class Params { +public class Params { @Config - public final static class PIDParams{ + public static class PIDParams{ //与底盘相关的kP理论值:SimpleMecanumDrive.Params.vP //TODO:预设...[0]为底盘X,[1]为底盘Y,[2]为底盘方向 public static double[] kP= new double[]{0.12, 0.15, 0.12}; @@ -14,7 +14,7 @@ public final static class PIDParams{ public static double[] MAX_I= new double[]{100, 100, 0}; } @Config - public final static class Configs{ + public static class Configs{ /**让机器自动在运行update()时,自动清除所有电机的power*/ public static boolean autoPrepareForNextOptionWhenUpdate = true; /**让机器自动在执行提供的操作时,自动在更改任何power变量后执行update()*/ @@ -33,7 +33,7 @@ public final static class Configs{ public static boolean useOutTimeProtection = true; } @Config - public final static class namespace{ + public static class namespace{ public static String LeftFront="leftFront"; public static String RightFront="rightFront"; public static String LeftRear="leftBack";