enabled visualvm

This commit is contained in:
Ryan Manley
2022-01-22 15:43:23 -07:00
parent df9946ffc7
commit 4cc0a2109a
2 changed files with 6 additions and 3 deletions
+5 -2
View File
@@ -1,5 +1,5 @@
import edu.wpi.first.gradlerio.deploy.roborio.RoboRIO
plugins {
id "java"
id "edu.wpi.first.GradleRIO" version "2022.2.1"
@@ -21,12 +21,14 @@ deploy {
// want to store a team number in this file.
team = project.frc.getTeamNumber()
debug = project.frc.getDebugOrDefault(false)
artifacts {
// First part is artifact name, 2nd is artifact type
// getTargetTypeClass is a shortcut to get the class type using a string
frcJava(getArtifactTypeClass('FRCJavaArtifact')) {
// Enable visualvm
jvmArgs << "-Dcom.sun.management.jmxremote=true -Dcom.sun.management.jmxremote.port=1099 -Dcom.sun.management.jmxremote.local.only=false -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false -Djava.rmi.server.hostname=10.43.88.2"
}
// Static files artifact
@@ -34,6 +36,7 @@ deploy {
files = project.fileTree('src/main/deploy')
directory = '/home/lvuser/deploy'
}
}
}
}
@@ -49,7 +49,7 @@ public class XboxController implements IHandController
private static final double LEFT_AXIS_RIGHT_TOLERANCE = 0.9;
private static final double LEFT_AXIS_LEFT_TOLERANCE = -0.9;
private static final double DEADZONE = 0.1;
private static final double DEADZONE = 0.2;
private Joystick m_stick;