001/************************* PROJECT RON *************************/ 002/* Copyright (c) 2026 StuyPulse Robotics. All rights reserved. */ 003/* Use of this source code is governed by an MIT-style license */ 004/* that can be found in the repository LICENSE file. */ 005/***************************************************************/ 006package com.stuypulse.robot.commands.vision; 007 008import com.stuypulse.robot.subsystems.vision.LimelightVision; 009import edu.wpi.first.wpilibj2.command.InstantCommand; 010 011public class SetVisionEnabled extends InstantCommand { 012 013 private LimelightVision vision; 014 015 public SetVisionEnabled() { 016 this.vision = LimelightVision.getInstance(); 017 } 018 019 @Override 020 public boolean runsWhenDisabled() { 021 return true; 022 } 023 024 @Override 025 public void initialize() { 026 vision.enable(); 027 } 028}