diff --git a/javadoc/allclasses-index.html b/javadoc/allclasses-index.html
index 3524f6e..0c430af 100644
--- a/javadoc/allclasses-index.html
+++ b/javadoc/allclasses-index.html
@@ -113,41 +113,43 @@
@@ -339,6 +336,12 @@ frc.robot.*
public static final double
0.6
+public static final double
+
+8.21
+public static final double
+
+16.54
public static final double
0.0
diff --git a/javadoc/frc/robot/commands/IntakeCommand.html b/javadoc/frc/robot/commands/IntakeCommand.html
index c145491..f2a7e36 100644
--- a/javadoc/frc/robot/commands/IntakeCommand.html
+++ b/javadoc/frc/robot/commands/IntakeCommand.html
@@ -121,8 +121,11 @@ Constructor Summary
Methods inherited from class edu.wpi.first.wpilibj2.command.Command
-addRequirements, alongWith, andThen, andThen, asProxy, beforeStarting, beforeStarting, cancel, deadlineWith, finallyDo, finallyDo, getInterruptionBehavior, getName, getRequirements, getSubsystem, handleInterrupt, hasRequirement, ignoringDisable, initialize, initSendable, isFinished, isScheduled, onlyIf, onlyWhile, raceWith, repeatedly, runsWhenDisabled, schedule, setName, setSubsystem, unless, until, withInterruptBehavior, withName, withTimeout
+addRequirements, alongWith, andThen, andThen, asProxy, beforeStarting, beforeStarting, cancel, deadlineWith, finallyDo, finallyDo, getInterruptionBehavior, getName, getRequirements, getSubsystem, handleInterrupt, hasRequirement, ignoringDisable, initSendable, isFinished, isScheduled, onlyIf, onlyWhile, raceWith, repeatedly, runsWhenDisabled, schedule, setName, setSubsystem, unless, until, withInterruptBehavior, withName, withTimeout
Methods inherited from class java.lang.Object
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait
@@ -169,10 +175,13 @@ Methods inherited from cl
Constructor Details
-
+
IntakeCommand
Command to run the intake
@@ -202,6 +211,16 @@ execute
+
+initialize
+public void initialize ()
+
+Overrides:
+initialize
in class edu.wpi.first.wpilibj2.command.Command
+
+
+
+
end
public void end (boolean interrupted)
diff --git a/javadoc/frc/robot/commands/OnTheFlyShootCommand.html b/javadoc/frc/robot/commands/OnTheFlyShootCommand.html
new file mode 100644
index 0000000..6b79576
--- /dev/null
+++ b/javadoc/frc/robot/commands/OnTheFlyShootCommand.html
@@ -0,0 +1,229 @@
+
+
+
+
+OnTheFlyShootCommand (2024-robot-code API)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+JavaScript is disabled on your browser.
+
+
+
+
+
+
+
+java.lang.Object
+
edu.wpi.first.wpilibj2.command.Command
+
frc.robot.commands.OnTheFlyShootCommand
+
+
+
+
+All Implemented Interfaces:
+edu.wpi.first.util.sendable.Sendable
+
+
+public class OnTheFlyShootCommand
+extends edu.wpi.first.wpilibj2.command.Command
+
+
+
+
+
+
+Nested Class Summary
+
+
Nested classes/interfaces inherited from class edu.wpi.first.wpilibj2.command.Command
+edu.wpi.first.wpilibj2.command.Command.InterruptionBehavior
+
+
+
+
+
+Field Summary
+
+
Fields inherited from class edu.wpi.first.wpilibj2.command.Command
+m_requirements
+
+
+
+
+
+Constructor Summary
+Constructors
+
+
+
+
+
+
Rotates the robot to face the speaker, while still allowing the driver to control forward and backward movement
+
+
+
+
+
+
+
+Method Summary
+
+
All Methods Instance Methods Concrete Methods
+
+
+
+
+
+
void
+
+
+
void
+
+
+
void
+
+
+
+
+
+
+
Methods inherited from class edu.wpi.first.wpilibj2.command.Command
+addRequirements, alongWith, andThen, andThen, asProxy, beforeStarting, beforeStarting, cancel, deadlineWith, finallyDo, finallyDo, getInterruptionBehavior, getName, getRequirements, getSubsystem, handleInterrupt, hasRequirement, ignoringDisable, initSendable, isFinished, isScheduled, onlyIf, onlyWhile, raceWith, repeatedly, runsWhenDisabled, schedule, setName, setSubsystem, unless, until, withInterruptBehavior, withName, withTimeout
+
+
Methods inherited from class java.lang.Object
+
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait
+
+
+
+
+
+
+
+
+
+Constructor Details
+
+
+
+OnTheFlyShootCommand
+
+Rotates the robot to face the speaker, while still allowing the driver to control forward and backward movement
+
+Parameters:
+swerveSubsystem
- The instance of SwerveSubsystem
+forward
- The desired forward percentage of the robot
+sideways
- The desired sideways percentage of the robot
+
+
+
+
+
+
+
+
+
+Method Details
+
+
+
+execute
+public void execute ()
+
+Overrides:
+execute
in class edu.wpi.first.wpilibj2.command.Command
+
+
+
+
+
+initialize
+public void initialize ()
+
+Overrides:
+initialize
in class edu.wpi.first.wpilibj2.command.Command
+
+
+
+
+
+end
+public void end (boolean interrupted)
+
+Overrides:
+end
in class edu.wpi.first.wpilibj2.command.Command
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/javadoc/frc/robot/commands/PathCommand.html b/javadoc/frc/robot/commands/PathCommand.html
index 262765e..c3713a7 100644
--- a/javadoc/frc/robot/commands/PathCommand.html
+++ b/javadoc/frc/robot/commands/PathCommand.html
@@ -50,7 +50,7 @@
@@ -99,6 +99,27 @@
Field Summary
+ Fields
+
+
+
+
+
static final double
+
+
+
static final edu.wpi.first.math.trajectory.TrapezoidProfile.Constraints
+
+
+
edu.wpi.first.math.controller.ProfiledPIDController
+
+
+
edu.wpi.first.math.controller.ProfiledPIDController
+
+
+
edu.wpi.first.math.controller.ProfiledPIDController
+
+
+
Fields inherited from class edu.wpi.first.wpilibj2.command.Command
m_requirements
@@ -112,8 +133,10 @@ Constructor Summary
@@ -130,17 +153,17 @@ Method Summary
void
-
+
void
-
+
Methods inherited from class edu.wpi.first.wpilibj2.command.Command
-addRequirements, alongWith, andThen, andThen, asProxy, beforeStarting, beforeStarting, cancel, deadlineWith, execute, finallyDo, finallyDo, getInterruptionBehavior, getName, getRequirements, getSubsystem, handleInterrupt, hasRequirement, ignoringDisable, initSendable, isFinished, isScheduled, onlyIf, onlyWhile, raceWith, repeatedly, runsWhenDisabled, schedule, setName, setSubsystem, unless, until, withInterruptBehavior, withName, withTimeout
+addRequirements, alongWith, andThen, andThen, asProxy, beforeStarting, beforeStarting, cancel, deadlineWith, finallyDo, finallyDo, getInterruptionBehavior, getName, getRequirements, getSubsystem, handleInterrupt, hasRequirement, ignoringDisable, initialize, initSendable, isFinished, isScheduled, onlyIf, onlyWhile, raceWith, repeatedly, runsWhenDisabled, schedule, setName, setSubsystem, unless, until, withInterruptBehavior, withName, withTimeout
Methods inherited from class java.lang.Object
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait
@@ -150,16 +173,56 @@ Methods inherited from cl
+
+
+
+Field Details
+
+
+
+kMaxSpeedPerSecondSquared
+public static final double kMaxSpeedPerSecondSquared
+
+
+
+
+kThetaControllerConstraints
+public static final edu.wpi.first.math.trajectory.TrapezoidProfile.Constraints kThetaControllerConstraints
+
+
+
+
+snapController
+public edu.wpi.first.math.controller.ProfiledPIDController snapController
+
+
+
+
+xController
+public edu.wpi.first.math.controller.ProfiledPIDController xController
+
+
+
+
+yController
+public edu.wpi.first.math.controller.ProfiledPIDController yController
+
+
+
+
+
Constructor Details
-
+
PathCommand
public PathCommand (SwerveSubsystem swerveSubsystem,
- edu.wpi.first.math.geometry.Pose2d endPose)
+ double x,
+ double y,
+ double angle)
@@ -171,19 +234,19 @@ PathCommand
Method Details
-
-initialize
-public void initialize ()
+
+execute
+public void execute ()
Overrides:
-initialize
in class edu.wpi.first.wpilibj2.command.Command
+execute
in class edu.wpi.first.wpilibj2.command.Command
end
-public void end (boolean i)
+public void end (boolean interrupted)
Overrides:
end
in class edu.wpi.first.wpilibj2.command.Command
diff --git a/javadoc/frc/robot/commands/SpinUpCommand.html b/javadoc/frc/robot/commands/SpinUpCommand.html
index b3c891d..c6ba5a7 100644
--- a/javadoc/frc/robot/commands/SpinUpCommand.html
+++ b/javadoc/frc/robot/commands/SpinUpCommand.html
@@ -112,14 +112,15 @@ Constructor Summary
-
+
-
Command to spin up the shooter, simply just spins the motors to shooterRPM (defined in
ShooterConstants
)
+
Spins up the shooter if we are close to the speaker
-
+
-
Spins up the shooter if we are close to the speaker
+
Command to spin up the shooter, simply just spins the motors to shooterRPM (defined in
ShooterConstants
)
@@ -165,9 +166,10 @@ Methods inherited from cl
Constructor Details
-
+
SpinUpCommand
-
+
Command to spin up the shooter, simply just spins the motors to shooterRPM (defined in
ShooterConstants
)
Parameters:
diff --git a/javadoc/frc/robot/commands/package-summary.html b/javadoc/frc/robot/commands/package-summary.html
index 397a75a..fd5cc0e 100644
--- a/javadoc/frc/robot/commands/package-summary.html
+++ b/javadoc/frc/robot/commands/package-summary.html
@@ -113,18 +113,20 @@ Package frc.robot.commands<
-
+
-
+
-
+
-
+
-
+
-
+
+
+
diff --git a/javadoc/frc/robot/commands/package-tree.html b/javadoc/frc/robot/commands/package-tree.html
index 07e78b0..d06b2b2 100644
--- a/javadoc/frc/robot/commands/package-tree.html
+++ b/javadoc/frc/robot/commands/package-tree.html
@@ -67,6 +67,7 @@ Class Hierarchy
frc.robot.commands.DriveCommands
frc.robot.commands.IndexerCommand
frc.robot.commands.IntakeCommand
+frc.robot.commands.OnTheFlyShootCommand
frc.robot.commands.PathCommand
frc.robot.commands.RotateToNoteAndDriveCommand
frc.robot.commands.RotateToSpeakerAndDriveCommand
diff --git a/javadoc/frc/robot/constants/ShooterConstants.html b/javadoc/frc/robot/constants/ShooterConstants.html
index db17a1c..bceb47d 100644
--- a/javadoc/frc/robot/constants/ShooterConstants.html
+++ b/javadoc/frc/robot/constants/ShooterConstants.html
@@ -88,6 +88,18 @@ Field Summary
static boolean
+static final edu.wpi.first.math.trajectory.TrapezoidProfile.Constraints
+
+
+static double
+
+
+static double
+
+
+static double
+
+
static final double
@@ -146,14 +158,11 @@ Field Summary
static final double
-
+
static final double
-
+
-static final double
-
-
@@ -277,6 +286,30 @@ isActive
+
+rotateP
+public static double rotateP
+
+
+
+
+rotateI
+public static double rotateI
+
+
+
+
+rotateD
+public static double rotateD
+
+
+
+
+rotateConstraints
+public static final edu.wpi.first.math.trajectory.TrapezoidProfile.Constraints rotateConstraints
+
+
+
shooterRPM
public static final double shooterRPM
@@ -325,20 +358,6 @@ shooterAngle
-
-sweetSpotDistance
-public static final double sweetSpotDistance
-
-See Also:
-
-
-
-
-
-
-
shooterNoteSpeedMPS
public static final double shooterNoteSpeedMPS
diff --git a/javadoc/frc/robot/constants/VisionConstants.html b/javadoc/frc/robot/constants/VisionConstants.html
index 56b670e..59dcaa8 100644
--- a/javadoc/frc/robot/constants/VisionConstants.html
+++ b/javadoc/frc/robot/constants/VisionConstants.html
@@ -121,6 +121,12 @@ Field Summary
static final double
+static final double
+
+
+static final double
+
+
static final edu.wpi.first.math.trajectory.TrapezoidProfile.Constraints
@@ -359,6 +365,34 @@ rotateToConstraints
public static final edu.wpi.first.math.trajectory.TrapezoidProfile.Constraints rotateToConstraints
+
+
+fieldLenMeters
+public static final double fieldLenMeters
+
+See Also:
+
+
+
+
+
+
+
+
+fieldHighMeters
+public static final double fieldHighMeters
+
+See Also:
+
+
+
+
+
+
diff --git a/javadoc/frc/robot/subsystems/LEDSubsystem.html b/javadoc/frc/robot/subsystems/LEDSubsystem.html
index 2eee173..351cb44 100644
--- a/javadoc/frc/robot/subsystems/LEDSubsystem.html
+++ b/javadoc/frc/robot/subsystems/LEDSubsystem.html
@@ -159,7 +159,7 @@ setLED
Sets the color of the LEDs on the robot
Parameters:
-value
- The color of LEDs (between 0-1, no clue how to figure out)
+value
- The color of LEDs between -1 and 1. (Reference )
diff --git a/javadoc/frc/robot/utils/NetworkTableUtils.html b/javadoc/frc/robot/utils/NetworkTableUtils.html
index edf94a3..9bce666 100644
--- a/javadoc/frc/robot/utils/NetworkTableUtils.html
+++ b/javadoc/frc/robot/utils/NetworkTableUtils.html
@@ -118,9 +118,9 @@ Method Summary
This function gets a value from Network Tables as a double array
-<T> T
-
+
+
This function returns a entry as whatever it is
@@ -141,16 +141,20 @@ Method Summary
This function sets a double in network tables
-<T> void
-
-
+
void
+
+
+
void
+
+
Sets a entry in Network Tables to a value
-
void
-
setString (String key,
+void
+
-
+
This function sets a String in network tables
@@ -246,6 +250,13 @@ getDoubleArray
+
+setDoubleArray
+public void setDoubleArray (String key,
+ double[] value)
+
+
+
setDouble
public void setDouble (String key,
@@ -272,25 +283,25 @@ setString
-
-getEntry
-public <T> T getEntry (String key,
- T value)
+
+getEntry
+
This function returns a entry as whatever it is
Parameters:
key
- The key in Network Tables for the value
-value
- We will return this is the entry is invalid
+defaultValue
- We will return this is the entry is invalid
Returns:
Returns the entry as whatever it is
-
-setEntry
-public <T> void setEntry (String key,
- T value)
+
+setEntry
+
Sets a entry in Network Tables to a value
Parameters:
diff --git a/javadoc/frc/robot/utils/VisionUtils.html b/javadoc/frc/robot/utils/VisionUtils.html
index 4add177..14cddac 100644
--- a/javadoc/frc/robot/utils/VisionUtils.html
+++ b/javadoc/frc/robot/utils/VisionUtils.html
@@ -162,12 +162,17 @@ Method Summary
static double
-static double
-
-
+static void
+
+
+
Toggle if vision is enable or not
+
static double
-
+
+static double
+
+
@@ -226,6 +231,17 @@ VisionUtils
Method Details
+
+visionEnabled
+public static void visionEnabled (boolean b)
+Toggle if vision is enable or not
+
+Parameters:
+b
- Set if vision is enabled or not
+
+
+
+
getBotPoseFieldSpace
public static edu.wpi.first.math.geometry.Pose3d getBotPoseFieldSpace ()
diff --git a/javadoc/index-all.html b/javadoc/index-all.html
index 2bbb848..f7a89c0 100644
--- a/javadoc/index-all.html
+++ b/javadoc/index-all.html
@@ -49,7 +49,7 @@
-A B C D E F G H I L M N P R S T V W X Y Z All Classes and Interfaces | All Packages | Constant Field Values
+A B C D E F G H I K L M N O P R S T V W X Y Z All Classes and Interfaces | All Packages | Constant Field Values
A
alignRotationConstraints - Static variable in class frc.robot.constants.VisionConstants
@@ -228,6 +228,8 @@ E
end(boolean) - Method in class frc.robot.commands.IntakeCommand
+end(boolean) - Method in class frc.robot.commands.OnTheFlyShootCommand
+
end(boolean) - Method in class frc.robot.commands.PathCommand
end(boolean) - Method in class frc.robot.commands.RotateToNoteAndDriveCommand
@@ -248,6 +250,10 @@ E
execute() - Method in class frc.robot.commands.IntakeCommand
+execute() - Method in class frc.robot.commands.OnTheFlyShootCommand
+
+execute() - Method in class frc.robot.commands.PathCommand
+
execute() - Method in class frc.robot.commands.RotateToNoteAndDriveCommand
execute() - Method in class frc.robot.commands.RotateToSpeakerAndDriveCommand
@@ -267,6 +273,10 @@ E
F
+fieldHighMeters - Static variable in class frc.robot.constants.VisionConstants
+
+fieldLenMeters - Static variable in class frc.robot.constants.VisionConstants
+
forward - Static variable in class frc.robot.utils.VisionUtils
frc.robot - package frc.robot
@@ -330,7 +340,7 @@ G
This function gets a value from Network Tables as a double array
-getEntry(String, T) - Method in class frc.robot.utils.NetworkTableUtils
+getEntry(String, Object) - Method in class frc.robot.utils.NetworkTableUtils
This function returns a entry as whatever it is
@@ -458,7 +468,9 @@ I
indexerTrapezoidProfile - Static variable in class frc.robot.constants.IndexerConstants
-initialize() - Method in class frc.robot.commands.PathCommand
+initialize() - Method in class frc.robot.commands.IntakeCommand
+
+initialize() - Method in class frc.robot.commands.OnTheFlyShootCommand
initialize() - Method in class frc.robot.commands.SpinUpCommand
@@ -468,7 +480,7 @@ I
IntakeCommand - Class in frc.robot.commands
-IntakeCommand(IntakeSubsystem, IndexerSubsystem, IntakeCommand.Targets, boolean) - Constructor for class frc.robot.commands.IntakeCommand
+IntakeCommand(IntakeSubsystem, IndexerSubsystem, LEDSubsystem, XboxController, XboxController, IntakeCommand.Targets, boolean) - Constructor for class frc.robot.commands.IntakeCommand
Command to run the intake
@@ -495,6 +507,13 @@ I
Check if the indexer is at its goal
+K
+
+kMaxSpeedPerSecondSquared - Static variable in class frc.robot.commands.PathCommand
+
+kThetaControllerConstraints - Static variable in class frc.robot.commands.PathCommand
+
+
L
LEDConstants - Class in frc.robot.constants
@@ -548,11 +567,20 @@ N
noteLimelight - Static variable in class frc.robot.utils.VisionUtils
+O
+
+OnTheFlyShootCommand - Class in frc.robot.commands
+
+OnTheFlyShootCommand(SwerveSubsystem, IndexerSubsystem, DoubleSupplier, DoubleSupplier) - Constructor for class frc.robot.commands.OnTheFlyShootCommand
+
+Rotates the robot to face the speaker, while still allowing the driver to control forward and backward movement
+
+
P
PathCommand - Class in frc.robot.commands
-PathCommand(SwerveSubsystem, Pose2d) - Constructor for class frc.robot.commands.PathCommand
+PathCommand(SwerveSubsystem, double, double, double) - Constructor for class frc.robot.commands.PathCommand
periodic() - Method in class frc.robot.subsystems.IndexerSubsystem
@@ -627,6 +655,12 @@ R
Rotate all indexer motors with a certain voltage
+rotateConstraints - Static variable in class frc.robot.constants.ShooterConstants
+
+rotateD - Static variable in class frc.robot.constants.ShooterConstants
+
+rotateI - Static variable in class frc.robot.constants.ShooterConstants
+
rotateMotorPercent(IndexerSubsystem.IndexerMotors, double) - Method in class frc.robot.subsystems.IndexerSubsystem
Rotate one of the motors with a percent value
@@ -635,6 +669,8 @@ R
rotateMotorVolts rotates one of the motors by setting the voltage applied to the motor
+ rotateP - Static variable in class frc.robot.constants.ShooterConstants
+
rotateToConstraints - Static variable in class frc.robot.constants.VisionConstants
rotateToD - Static variable in class frc.robot.constants.VisionConstants
@@ -684,7 +720,9 @@ S
This function sets a double in network tables
-setEntry(String, T) - Method in class frc.robot.utils.NetworkTableUtils
+setDoubleArray(String, double[]) - Method in class frc.robot.utils.NetworkTableUtils
+
+setEntry(String, Object) - Method in class frc.robot.utils.NetworkTableUtils
Sets a entry in Network Tables to a value
@@ -784,6 +822,8 @@ S
SHOOTING - Enum constant in enum class frc.robot.constants.LEDConstants.Status
+snapController - Variable in class frc.robot.commands.PathCommand
+
SPEAKER - Enum constant in enum class frc.robot.commands.IndexerCommand.Mode
SPEAKER - Enum constant in enum class frc.robot.commands.IntakeCommand.Targets
@@ -798,14 +838,14 @@ S
SpinUpCommand - Class in frc.robot.commands
-SpinUpCommand(ShooterSubsystem) - Constructor for class frc.robot.commands.SpinUpCommand
-
-Command to spin up the shooter, simply just spins the motors to shooterRPM (defined in
ShooterConstants
)
-
SpinUpCommand(ShooterSubsystem, IndexerSubsystem) - Constructor for class frc.robot.commands.SpinUpCommand
Spins up the shooter if we are close to the speaker
+SpinUpCommand(ShooterSubsystem, LEDSubsystem) - Constructor for class frc.robot.commands.SpinUpCommand
+
+Command to spin up the shooter, simply just spins the motors to shooterRPM (defined in
ShooterConstants
)
+
spurGearTeeth - Static variable in class frc.robot.constants.DrivetrainConstants
StepTowards(double, double, double) - Static method in class frc.robot.utils.SwerveUtils
@@ -816,8 +856,6 @@ S
Steps a value (angle) towards a target (angle) taking the shortest path with a specified step size.
-sweetSpotDistance - Static variable in class frc.robot.constants.ShooterConstants
-
SwerveModuleControlller - Class in frc.robot.controllers
SwerveModuleControlller(int, int, double) - Constructor for class frc.robot.controllers.SwerveModuleControlller
@@ -958,6 +996,10 @@ V
VisionConstants() - Constructor for class frc.robot.constants.VisionConstants
+visionEnabled(boolean) - Static method in class frc.robot.utils.VisionUtils
+
+Toggle if vision is enable or not
+
VisionUtils - Class in frc.robot.utils
VisionUtils() - Constructor for class frc.robot.utils.VisionUtils
@@ -978,11 +1020,15 @@ W
X
+xController - Variable in class frc.robot.commands.PathCommand
+
XDistanceToNote() - Static method in class frc.robot.utils.VisionUtils
Y
+yController - Variable in class frc.robot.commands.PathCommand
+
YDistanceToNote() - Static method in class frc.robot.utils.VisionUtils
@@ -997,7 +1043,7 @@ Z
Resets Gyro and odometry
-A B C D E F G H I L M N P R S T V W X Y Z All Classes and Interfaces | All Packages | Constant Field Values
+A B C D E F G H I K L M N O P R S T V W X Y Z All Classes and Interfaces | All Packages | Constant Field Values