Class LimelightVision
java.lang.Object
edu.wpi.first.wpilibj2.command.SubsystemBase
com.stuypulse.robot.subsystems.vision.LimelightVision
- All Implemented Interfaces:
edu.wpi.first.util.sendable.Sendable,edu.wpi.first.wpilibj2.command.Subsystem
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate edu.wpi.first.networktables.BooleanSubscriber[]private static final LimelightVisionprivate LimelightVision.MegaTagModeprivate String[] -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcaptureRewind(double timeSecs) voiddisable()voidenable()static LimelightVisionvoidperiodic()voidsetCameraEnabled(String name, boolean enabled) voidsetIMUAssistValue(double assistValue) Allows you to set the convergence speed of the internal LL IMU and robot gyro.voidsetIMUMode(int mode) voidvoidsetPipeline(int pipeline) voidsetTagWhitelist(int[] ids) Methods inherited from class edu.wpi.first.wpilibj2.command.SubsystemBase
addChild, getName, getSubsystem, initSendable, setName, setSubsystemMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface edu.wpi.first.wpilibj2.command.Subsystem
defer, getCurrentCommand, getDefaultCommand, idle, register, removeDefaultCommand, run, runEnd, runOnce, setDefaultCommand, simulationPeriodic, startEnd, startRun
-
Field Details
-
instance
-
names
-
camerasEnabled
-
megaTagMode
-
-
Constructor Details
-
LimelightVision
public LimelightVision()
-
-
Method Details
-
getInstance
-
setTagWhitelist
-
enable
-
disable
-
setCameraEnabled
-
setMegaTagMode
-
setIMUMode
-
setPipeline
-
setIMUAssistValue
Allows you to set the convergence speed of the internal LL IMU and robot gyro.- Parameters:
assistValue- , an double that sets the correction speed of the complementary filter for the IMU. IMU Mode 4 uses the fusing of the internal IMU (1khz) with the external gyro reading as well. Higher values ranging towards 1 indicate a faster convergence of internal IMU to the robot IMU mode. Defaults to 0.001.
-
getIMUData
-
captureRewind
-
periodic
-