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
public class LimelightVision
extends edu.wpi.first.wpilibj2.command.SubsystemBase
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddisable()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
-
Constructor Details
-
LimelightVision
public LimelightVision()
-
-
Method Details
-
getInstance
-
setTagWhitelist
public void setTagWhitelist(int[] ids) -
enable
public void enable() -
disable
public void disable() -
setCameraEnabled
-
setMegaTagMode
-
setIMUMode
public void setIMUMode(int mode) -
setPipeline
public void setPipeline(int pipeline) -
setIMUAssistValue
public void setIMUAssistValue(double assistValue) 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
-
periodic
public void periodic()
-