File tree Expand file tree Collapse file tree
TeamCode/src/main/java/org/firstinspires/ftc/teamcode/blucru/common/subsytems/outtake/turret Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ public void write() {
9696 case LOCK_ON_GOAL :
9797 //Globals.telemetry.addData("Turret Cam Detecting", Robot.getInstance().turretCam.detectedThisLoop());
9898 Globals .telemetry .addData ("Turret Offset" , headingOffset );
99- if (Robot .getInstance ().turretCam .detectedThisLoop () || (Robot .getInstance ().turretCam .getDetection ().frameAcquisitionNanoTime ) < 2000000 ){
99+ if (Robot .getInstance ().turretCam .getDetection () != null && Robot . getInstance (). turretCam . detectedThisLoop () || (Robot .getInstance ().turretCam .getDetection ().frameAcquisitionNanoTime ) < 2000000 ){
100100 tagBasedAutoAim (Robot .getInstance ().turretCam .getDetection ());
101101 if (lastAutoAimMode == LastAutoAimMode .LOC ){
102102 Globals .telemetry .addLine ("SWITCHING TO CAMERA" );
You can’t perform that action at this time.
0 commit comments