mirror of
https://github.com/Team4388/2022NoWayHome.git
synced 2026-06-09 00:38:05 -06:00
Tuner stuffs
This commit is contained in:
Generated
+8
-15
@@ -4,7 +4,13 @@
|
|||||||
<option name="autoReloadType" value="SELECTIVE" />
|
<option name="autoReloadType" value="SELECTIVE" />
|
||||||
</component>
|
</component>
|
||||||
<component name="ChangeListManager">
|
<component name="ChangeListManager">
|
||||||
<list default="true" id="9c18dc17-7391-414f-be16-8f692898fefb" name="Changes" comment="" />
|
<list default="true" id="9c18dc17-7391-414f-be16-8f692898fefb" name="Changes" comment="">
|
||||||
|
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/simgui-ds.json" beforeDir="false" afterPath="$PROJECT_DIR$/simgui-ds.json" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/simgui.json" beforeDir="false" afterPath="$PROJECT_DIR$/simgui.json" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/main/java/frc4388/robot/subsystems/TestMotor.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/frc4388/robot/subsystems/TestMotor.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/main/java/frc4388/utility/tuner/TunerTablesHandler.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/frc4388/utility/tuner/TunerTablesHandler.java" afterDir="false" />
|
||||||
|
</list>
|
||||||
<option name="SHOW_DIALOG" value="false" />
|
<option name="SHOW_DIALOG" value="false" />
|
||||||
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
||||||
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
||||||
@@ -67,8 +73,6 @@
|
|||||||
</component>
|
</component>
|
||||||
<component name="HighlightingSettingsPerFile">
|
<component name="HighlightingSettingsPerFile">
|
||||||
<setting file="jar://$PROJECT_DIR$/../../../../../Program Files/Java/jdk-17.0.2/lib/src.zip!/java.base/java/util/Map.java" root0="SKIP_INSPECTION" />
|
<setting file="jar://$PROJECT_DIR$/../../../../../Program Files/Java/jdk-17.0.2/lib/src.zip!/java.base/java/util/Map.java" root0="SKIP_INSPECTION" />
|
||||||
<setting file="jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/edu.wpi.first.hal/hal-java/2022.2.1/c3366615a84edb487fa8567afc3dd1010075af41/hal-java-2022.2.1-sources.jar!/edu/wpi/first/hal/can/CANJNI.java" root0="SKIP_INSPECTION" />
|
|
||||||
<setting file="jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/edu.wpi.first.wpilibj/wpilibj-java/2022.2.1/1d10b453b5700a1b25cd9e39e13077dc846e3a53/wpilibj-java-2022.2.1-sources.jar!/edu/wpi/first/wpilibj/RobotBase.java" root0="SKIP_INSPECTION" />
|
|
||||||
</component>
|
</component>
|
||||||
<component name="MarkdownSettingsMigration">
|
<component name="MarkdownSettingsMigration">
|
||||||
<option name="stateVersion" value="1" />
|
<option name="stateVersion" value="1" />
|
||||||
@@ -90,7 +94,7 @@
|
|||||||
"project.structure.last.edited": "Project",
|
"project.structure.last.edited": "Project",
|
||||||
"project.structure.proportion": "0.0",
|
"project.structure.proportion": "0.0",
|
||||||
"project.structure.side.proportion": "0.2",
|
"project.structure.side.proportion": "0.2",
|
||||||
"settings.editor.selected.configurable": "reference.settingsdialog.IDE.editor.colors.Java"
|
"settings.editor.selected.configurable": "preferences.pluginManager"
|
||||||
}
|
}
|
||||||
}</component>
|
}</component>
|
||||||
<component name="RecentsManager">
|
<component name="RecentsManager">
|
||||||
@@ -158,15 +162,4 @@
|
|||||||
</task>
|
</task>
|
||||||
<servers />
|
<servers />
|
||||||
</component>
|
</component>
|
||||||
<component name="XDebuggerManager">
|
|
||||||
<breakpoint-manager>
|
|
||||||
<breakpoints>
|
|
||||||
<line-breakpoint enabled="true" type="java-line">
|
|
||||||
<url>file://$PROJECT_DIR$/src/main/java/frc4388/utility/tuner/TunerTablesHandler.java</url>
|
|
||||||
<line>55</line>
|
|
||||||
<option name="timeStamp" value="1" />
|
|
||||||
</line-breakpoint>
|
|
||||||
</breakpoints>
|
|
||||||
</breakpoint-manager>
|
|
||||||
</component>
|
|
||||||
</project>
|
</project>
|
||||||
+12
@@ -0,0 +1,12 @@
|
|||||||
|
arguments=--init-script C\:\\Users\\Owner\\.vscode\\extensions\\redhat.java-1.10.0-win32-x64\\server\\config_win\\org.eclipse.osgi\\53\\0\\.cp\\gradle\\init\\init.gradle
|
||||||
|
auto.sync=false
|
||||||
|
build.scans.enabled=false
|
||||||
|
connection.gradle.distribution=GRADLE_DISTRIBUTION(WRAPPER)
|
||||||
|
eclipse.preferences.version=1
|
||||||
|
gradle.user.home=
|
||||||
|
java.home=C\:/Program Files/Java/jdk-17.0.2
|
||||||
|
jvm.arguments=
|
||||||
|
offline.mode=false
|
||||||
|
override.workspace.settings=true
|
||||||
|
show.console.view=true
|
||||||
|
show.executions.view=true
|
||||||
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
@@ -0,0 +1 @@
|
|||||||
|
|
||||||
Binary file not shown.
@@ -0,0 +1 @@
|
|||||||
|
|
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1 @@
|
|||||||
|
INDEX VERSION 1.131
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
java
|
||||||
Binary file not shown.
@@ -0,0 +1,4 @@
|
|||||||
|
INDEX VERSION 1.131+C:\Users\Owner\Documents\GitHub\2022NoWayHome\.metadata\.plugins\org.eclipse.jdt.core
|
||||||
|
2238567309.index
|
||||||
|
760091825.index
|
||||||
|
1865797976.index
|
||||||
Binary file not shown.
@@ -0,0 +1,4 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<dirs>
|
||||||
|
<entry loc="C:\Program Files\Java\jdk-17.0.2" stamp="1642579750178"/>
|
||||||
|
</dirs>
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<libraryInfos>
|
||||||
|
<libraryInfo home="C:\Program Files\Java\jdk-17.0.2" version="17.0.2"/>
|
||||||
|
</libraryInfos>
|
||||||
Binary file not shown.
Binary file not shown.
@@ -27,6 +27,9 @@
|
|||||||
"SmartDashboard": {
|
"SmartDashboard": {
|
||||||
"open": true
|
"open": true
|
||||||
},
|
},
|
||||||
|
"TunerTable": {
|
||||||
|
"open": true
|
||||||
|
},
|
||||||
"TunerTables": {
|
"TunerTables": {
|
||||||
"LoggerTable": {
|
"LoggerTable": {
|
||||||
"open": true
|
"open": true
|
||||||
|
|||||||
@@ -2,6 +2,10 @@ package frc4388.robot.subsystems;
|
|||||||
|
|
||||||
import com.ctre.phoenix.motorcontrol.can.WPI_TalonSRX;
|
import com.ctre.phoenix.motorcontrol.can.WPI_TalonSRX;
|
||||||
|
|
||||||
|
import edu.wpi.first.math.numbers.N1;
|
||||||
|
import edu.wpi.first.math.system.plant.DCMotor;
|
||||||
|
import edu.wpi.first.wpilibj.simulation.ElevatorSim;
|
||||||
|
import edu.wpi.first.wpilibj.simulation.LinearSystemSim;
|
||||||
import edu.wpi.first.wpilibj2.command.SubsystemBase;
|
import edu.wpi.first.wpilibj2.command.SubsystemBase;
|
||||||
import frc4388.utility.Gains;
|
import frc4388.utility.Gains;
|
||||||
import frc4388.utility.tuner.TunerLogger;
|
import frc4388.utility.tuner.TunerLogger;
|
||||||
@@ -18,7 +22,7 @@ public class TestMotor extends SubsystemBase {
|
|||||||
private final WPI_TalonSRX m_testMotor;
|
private final WPI_TalonSRX m_testMotor;
|
||||||
|
|
||||||
@GainsField(id="TestMotor")
|
@GainsField(id="TestMotor")
|
||||||
public Gains gains = new Gains(1, 1, 1, 1, 1, 1);
|
public Gains gains = new Gains(5, 4, 3, 2, 1, 1);
|
||||||
|
|
||||||
@Loggable(id="test")
|
@Loggable(id="test")
|
||||||
public double logable = 4;
|
public double logable = 4;
|
||||||
@@ -40,14 +44,19 @@ public class TestMotor extends SubsystemBase {
|
|||||||
// m_testMotor.set(DesmosServer.readDouble("Speed"));
|
// m_testMotor.set(DesmosServer.readDouble("Speed"));
|
||||||
// }
|
// }
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void periodic() {
|
||||||
|
logable = Math.random()*2 -1;
|
||||||
|
}
|
||||||
|
|
||||||
@Reader(id="TestMotor", value="velocity")
|
@Reader(id="TestMotor", value="velocity")
|
||||||
public double velocityReader() {
|
public double velocityReader() {
|
||||||
return m_testMotor.getSelectedSensorVelocity();
|
return logable;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Reader(id="TestMotor", value="position")
|
@Reader(id="TestMotor", value="position")
|
||||||
public double positionReader() {
|
public double positionReader() {
|
||||||
return m_testMotor.getSelectedSensorPosition();
|
return Math.random() * 2 - 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Controller(id="TestMotor", value="velocity")
|
@Controller(id="TestMotor", value="velocity")
|
||||||
@@ -55,4 +64,4 @@ public class TestMotor extends SubsystemBase {
|
|||||||
logable = Math.random() * 10;
|
logable = Math.random() * 10;
|
||||||
m_testMotor.set(value);
|
m_testMotor.set(value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,6 +11,8 @@ import java.util.HashMap;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
|
import java.lang.Math;
|
||||||
|
|
||||||
public class TunerTablesHandler {
|
public class TunerTablesHandler {
|
||||||
private final NetworkTable tunerTable;
|
private final NetworkTable tunerTable;
|
||||||
private final NetworkTableEntry activeEntry;
|
private final NetworkTableEntry activeEntry;
|
||||||
|
|||||||
Reference in New Issue
Block a user