Skip to content

Commit f57e323

Browse files
committed
telemtry
1 parent 8ffa705 commit f57e323

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

  • TeamCode/src/main/java/org/firstinspires/ftc/teamcode/blucru/common/subsytems/outtake/turret

TeamCode/src/main/java/org/firstinspires/ftc/teamcode/blucru/common/subsytems/outtake/turret/Turret.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff 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()

0 commit comments

Comments
 (0)