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,8 @@ 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 .getDetection () != null && ( Robot .getInstance ().turretCam .detectedThisLoop () || (System .nanoTime () - Robot .getInstance ().turretCam .getDetection ().frameAcquisitionNanoTime ) < 55000000 )){
99+ Globals .telemetry .addData ("detection" , Robot .getInstance ().turretCam .getDetection ());
100+ if (Robot .getInstance ().turretCam .getDetection () != null && ( Robot .getInstance ().turretCam .detectedThisLoop () || Math .abs (System .nanoTime () - Robot .getInstance ().turretCam .getDetection ().frameAcquisitionNanoTime ) < 55000000 )){
100101 Globals .telemetry .addLine ("here hallo hi hi hi hi hallo here" );
101102 tagBasedAutoAim (Robot .getInstance ().turretCam .getDetection ());
102103 if (lastAutoAimMode == LastAutoAimMode .LOC ){
@@ -254,7 +255,7 @@ public double getFieldCentricTargetGoalAngle(Pose2d robotPose) {
254255 return Math .toDegrees (Math .atan2 (dx , dy )) - 90 ;
255256 }
256257
257- public void localizationBasedAutoAim (){
258+ public void localizationBasedAutoAim (){
258259 double turretTargetDeg =
259260 getFieldCentricTargetGoalAngle (
260261 Robot .getInstance ().sixWheelDrivetrain .getPos ()
You can’t perform that action at this time.
0 commit comments