Interface SubsystemState<T extends Enum<T>>
++
-
+
+
-
+
+ +Method Summary
+ +
+
-
+
+
-
+
+ +Method Details
+-
+
-
+
+ +setState
+ +
+ -
+
+ +getState
+T getState()+
+ -
+
+ +stateIs
+ +
+
+ -
+
From 5e3a918bb698a4a59c0146219c77a825de7793f0 Mon Sep 17 00:00:00 2001 From: William Yuan <66759156+Wi11iamYuan@users.noreply.github.com> Date: Thu, 14 Nov 2024 21:24:30 -0800 Subject: [PATCH] Try --- build.gradle | 16 -- doc/allclasses-index.html | 98 ++++----- doc/common/core/misc/NAR_Robot.html | 50 +---- .../core/subsystems/ElevatorTemplate.html | 18 +- .../core/subsystems/ManipulatorTemplate.html | 16 +- .../core/subsystems/NAR_PIDSubsystem.html | 83 ++++++-- doc/common/core/subsystems/PivotTemplate.html | 18 +- .../core/subsystems/ShooterTemplate.html | 30 +-- .../core/subsystems/SubsystemState.html | 141 +++++++++++++ .../core/subsystems/package-summary.html | 14 +- doc/common/core/subsystems/package-tree.html | 6 + doc/common/hardware/limelight/Limelight.html | 68 +++--- .../motorcontroller/NAR_CANSpark.html | 4 +- .../NAR_Motor.NAR_MotorIO.html | 195 ------------------ .../hardware/motorcontroller/NAR_Motor.html | 18 +- .../hardware/motorcontroller/NAR_TalonFX.html | 4 +- .../motorcontroller/NAR_TalonSRX.html | 4 +- .../motorcontroller/package-summary.html | 14 +- .../motorcontroller/package-tree.html | 1 - doc/index-all.html | 94 +++++---- doc/member-search-index.js | 2 +- doc/overview-tree.html | 7 +- doc/type-search-index.js | 2 +- src/main/java/common/core/misc/NAR_Robot.java | 133 +----------- .../java/common/core/swerve/SwerveBase.java | 8 +- .../java/common/hardware/camera/Camera.java | 2 - .../hardware/motorcontroller/NAR_Motor.java | 29 --- vendordeps/AdvantageKit.json | 42 ---- 28 files changed, 453 insertions(+), 664 deletions(-) create mode 100644 doc/common/core/subsystems/SubsystemState.html delete mode 100644 doc/common/hardware/motorcontroller/NAR_Motor.NAR_MotorIO.html delete mode 100644 vendordeps/AdvantageKit.json diff --git a/build.gradle b/build.gradle index ec3b51b..201aac1 100644 --- a/build.gradle +++ b/build.gradle @@ -104,13 +104,6 @@ repositories { mavenLocal() mavenCentral() - maven { - url = uri("https://maven.pkg.github.com/Mechanical-Advantage/AdvantageKit") - credentials { - username = "Mechanical-Advantage-Bot" - password = "\u0067\u0068\u0070\u005f\u006e\u0056\u0051\u006a\u0055\u004f\u004c\u0061\u0079\u0066\u006e\u0078\u006e\u0037\u0051\u0049\u0054\u0042\u0032\u004c\u004a\u006d\u0055\u0070\u0073\u0031\u006d\u0037\u004c\u005a\u0030\u0076\u0062\u0070\u0063\u0051" - } - } } // Setup eclipse classpath settings, so the javadoc and sources are available in eclipse @@ -121,12 +114,6 @@ eclipse { } } -// task(checkAkitInstall, dependsOn: "classes", type: JavaExec) { -// mainClass = "org.littletonrobotics.junction.CheckInstall" -// classpath = sourceSets.main.runtimeClasspath -// } -// compileJava.finalizedBy checkAkitInstall - // Defining dependencies. In this case, WPILib (+ friends), and some vendor libraries (NavX, CTRE) dependencies { @@ -136,9 +123,6 @@ dependencies { implementation 'org.java-websocket:Java-WebSocket:1.4.1' implementation group: 'com.googlecode.json-simple', name: 'json-simple', version: '1.1.1' - - def akitJson = new groovy.json.JsonSlurper().parseText(new File(projectDir.getAbsolutePath() + "/vendordeps/AdvantageKit.json").text) - annotationProcessor "org.littletonrobotics.akit.junction:junction-autolog:$akitJson.version" // For reference, here are a few more of the easy to add libraries not currently used: //implementation pathfinder() (Jaci's) diff --git a/doc/allclasses-index.html b/doc/allclasses-index.html index 6a55493..987d89c 100644 --- a/doc/allclasses-index.html +++ b/doc/allclasses-index.html @@ -54,7 +54,7 @@
PIDSubsystem
Shuffleboard
WPI_TalonSRX
class.WebSocketServer
class, used to log robot data and select autosPolynomialRegression
class performs a polynomial regression on an set of N
data points (yi, xi).Includes AdvantageKit and addPeriodic() - +
NOTES:
----------------------------------------------
static final double
static boolean
static void
addReceiver(boolean port,
- NAR_Robot.LoggingState state)
void
close()
void
close()
void
void
port
- true if USB drive is plugged into the top port, false if it is
- plugged into the bottom port.state
- session logging or full match logging.edu.wpi.first.wpilibj2.command.Command
moveElevator(double setpoint)
pidTo(double setpoint)
edu.wpi.first.wpilibj2.command.Command
runElevator(double power)
run(double power)
atSetpoint, disable, enable, enableContinuousInput, getController, getSetpoint, initShuffleboard, isDebug, isEnabled, periodic, setConstraints, setkG_Function, setSafetyThresh, setTolerance, setUpdateTime, startPID
addDisableCondition, atSetpoint, disable, enable, enableContinuousInput, getController, getDisableConditions, getSetpoint, initShuffleboard, isDebug, isEnabled, onConstraintViolation, onSafetyTimeout, periodic, setConstraints, setkG_Function, setSafetyThresh, setTolerance, setUpdateTime, startPID
addChild, getName, getSubsystem, initSendable, setName, setSubsystem
ManipulatorTemplate(NAR_Motor... motors)
edu.wpi.first.wpilibj2.command.Command
runManipulator(double power)
run(double power)
boolean
void
addDisableCondition(BooleanSupplier condition)
void
disable()
boolean
void
enable()
disable()
void
enableContinuousInput(double minimumInput,
- double maximumInput)
enable()
void
enableContinuousInput(double minimumInput,
+ double maximumInput)
protected abstract double
void
void
void
periodic()
void
condition
- The condition to disable the PID control.edu.wpi.first.wpilibj2.command.Command
pivotTo(double setpoint)
pidTo(double setpoint)
edu.wpi.first.wpilibj2.command.Command
runPivot(double power)
run(double power)
atSetpoint, disable, enable, enableContinuousInput, getController, getSetpoint, initShuffleboard, isDebug, isEnabled, periodic, setConstraints, setkG_Function, setSafetyThresh, setTolerance, setUpdateTime, startPID
addDisableCondition, atSetpoint, disable, enable, enableContinuousInput, getController, getDisableConditions, getSetpoint, initShuffleboard, isDebug, isEnabled, onConstraintViolation, onSafetyTimeout, periodic, setConstraints, setkG_Function, setSafetyThresh, setTolerance, setUpdateTime, startPID
addChild, getName, getSubsystem, initSendable, setName, setSubsystem
edu.wpi.first.wpilibj2.command.Command
runShooter(double power)
pidTo(double setpoint)
protected void
setPower(double power)
edu.wpi.first.wpilibj2.command.Command
run(double power)
edu.wpi.first.wpilibj2.command.Command
shoot(double setpoint)
protected void
setPower(double power)
protected void
useOutput(double output,
@@ -183,7 +183,7 @@ Method Summary
atSetpoint, disable, enable, enableContinuousInput, getController, getSetpoint, initShuffleboard, isDebug, isEnabled, periodic, setConstraints, setkG_Function, setSafetyThresh, setTolerance, setUpdateTime, startPID
addDisableCondition, atSetpoint, disable, enable, enableContinuousInput, getController, getDisableConditions, getSetpoint, initShuffleboard, isDebug, isEnabled, onConstraintViolation, onSafetyTimeout, periodic, setConstraints, setkG_Function, setSafetyThresh, setTolerance, setUpdateTime, startPID
addChild, getName, getSubsystem, initSendable, setName, setSubsystem
double
double
double
getValue(LimelightKey key)
edu.wpi.first.math.geometry.Translation2d
getTargetFieldPosition(double targetHeight,
+ edu.wpi.first.math.geometry.Pose2d robotPose)
double
getValue(LimelightKey key)
double
getValueAverage(LimelightKey key,
+double
+getValueAverage(LimelightKey key,
int numSamples)
-
-boolean
-
-
+
+boolean
+
+
Checks to see if the Limelight has a valid target
-void
-setLEDMode(LEDMode mode)
-
void
-setPipeline(Pipeline pipeline)
+setLEDMode(LEDMode mode)
void
-setStreamMode(StreamMode mode)
+setPipeline(Pipeline pipeline)
+void
+setStreamMode(StreamMode mode)
+
cameraAngle
- - The vertical angle of the limelightcameraHeight
- - The height off of the ground of the limelightfrontDistance
- - The distance between the front of the robot and the
- LimelightcameraAngle
- - The vertical angle of the limelight. Leaning backwards is positive degrees.cameraHeight
- - The height off of the ground of the limelight lensfrontDistance
- - The distance between the front of the robot and the Limelight LensrobotCenterDistance
- - The distance between the center of the robot and the Limelight LensNAR_Motor.Control, NAR_Motor.MotorConfig, NAR_Motor.NAR_MotorIO, NAR_Motor.Neutral
NAR_Motor.Control, NAR_Motor.MotorConfig, NAR_Motor.Neutral
configMotor, enableContinuousInput, getPosition, getVelocity, resetPosition, set, set, set, setNeutralMode, setTimeConversionFactor, setUnitConversionFactor, setVolts, updateIO
configMotor, enableContinuousInput, getPosition, getVelocity, resetPosition, set, set, set, setNeutralMode, setTimeConversionFactor, setUnitConversionFactor, setVolts
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
double
double
double
double
double
static class
static enum
void
updateIO(common.hardware.motorcontroller.NAR_MotorIOAutoLogged io)
NAR_Motor.Control, NAR_Motor.MotorConfig, NAR_Motor.NAR_MotorIO, NAR_Motor.Neutral
NAR_Motor.Control, NAR_Motor.MotorConfig, NAR_Motor.Neutral
configMotor, enableContinuousInput, follow, getPosition, getVelocity, resetPosition, set, set, set, setNeutralMode, setTimeConversionFactor, setUnitConversionFactor, setVolts, updateIO
configMotor, enableContinuousInput, follow, getPosition, getVelocity, resetPosition, set, set, set, setNeutralMode, setTimeConversionFactor, setUnitConversionFactor, setVolts
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
NAR_Motor.Control, NAR_Motor.MotorConfig, NAR_Motor.NAR_MotorIO, NAR_Motor.Neutral
NAR_Motor.Control, NAR_Motor.MotorConfig, NAR_Motor.Neutral
@@ -280,7 +280,7 @@ configMotor, enableContinuousInput, getPosition, getVelocity, resetPosition, set, set, set, setNeutralMode, setTimeConversionFactor, setUnitConversionFactor, setVolts, updateIO
configMotor, enableContinuousInput, getPosition, getVelocity, resetPosition, set, set, set, setNeutralMode, setTimeConversionFactor, setUnitConversionFactor, setVolts
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait