public LEDDefaultCommand(LED led, Drivetrain drivetrain, Vision vision) {
this.led = led;
- // this.outtake = outtake; // TODO: Outtake subsystem not yet implemented
+ // this.outtake = outtake;
this.drivetrain = drivetrain;
this.vision = vision;
onlyUse = ids;
}
+ /**
+ * Checks if one or more cameras are disconnected
+ * @return true if at least one camera is disconnected, false otherwise
+ */
+ public boolean oneCameraDisconnected(){
+ for(VisionCamera camera : cameras){
+ if(!camera.inputs.connected){
+ return true;
+ }
+ }
+ return false;
+ }
+
/**
* Checks if a pose is on the field
* @param pose The pose to check