summaryrefslogtreecommitdiff
path: root/src/main/java/frc/robot/util
diff options
context:
space:
mode:
authorkartofen <mladenovnasko0@gmail.com>2024-03-08 10:55:54 +0200
committerkartofen <mladenovnasko0@gmail.com>2024-03-08 10:55:54 +0200
commit01d6a7ef435dd9f6835fc3916a7f623395288490 (patch)
treed47bf6478e4b76009948b932cd86e4d49b56c267 /src/main/java/frc/robot/util
parent4452529be059c5fbe4aaf9190f25cfc734715f01 (diff)
changes
Diffstat (limited to 'src/main/java/frc/robot/util')
-rw-r--r--src/main/java/frc/robot/util/MechState.java15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/main/java/frc/robot/util/MechState.java b/src/main/java/frc/robot/util/MechState.java
new file mode 100644
index 0000000..f0092f0
--- /dev/null
+++ b/src/main/java/frc/robot/util/MechState.java
@@ -0,0 +1,15 @@
+package frc.robot.util;
+
+public class MechState {
+ public double m_chain_pos;
+ public double m_arm_pos;
+ public MechState(double chain_pos, double arm_pos) {
+ m_chain_pos = chain_pos;
+ m_arm_pos = arm_pos;
+ }
+ // TODO
+ public boolean isValid() {
+ return 30 > (Math.cos(m_arm_pos * Math.PI / 180) * 60 - m_arm_pos * 80);
+ // return true;
+ }
+}