Skip to content

Commit

Permalink
Update InchPerTick Tuner
Browse files Browse the repository at this point in the history
  • Loading branch information
6-BennyLi-9 committed Aug 27, 2024
1 parent 5830104 commit acb2dd3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import com.acmerobotics.roadrunner.Pose2d;
import com.qualcomm.robotcore.eventloop.opmode.TeleOp;

import org.firstinspires.ftc.teamcode.Params;
import org.firstinspires.ftc.teamcode.utils.Annotations.TuningOpModes;
import org.firstinspires.ftc.teamcode.utils.AutonomousProgramTemplate;

Expand All @@ -19,6 +20,7 @@ public void runOpMode() {
while (!isStopRequested()){
robot.update();
robot.changeData("Ticks",robot.sensors.getDeltaA());
robot.changeData("Inch Drove",robot.sensors.getDeltaA()* Params.AxialInchPerTick);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import com.acmerobotics.roadrunner.Pose2d;
import com.qualcomm.robotcore.eventloop.opmode.TeleOp;

import org.firstinspires.ftc.teamcode.Params;
import org.firstinspires.ftc.teamcode.utils.Annotations.TuningOpModes;
import org.firstinspires.ftc.teamcode.utils.AutonomousProgramTemplate;

Expand All @@ -19,6 +20,7 @@ public void runOpMode() {
while (!isStopRequested()){
robot.update();
robot.changeData("Ticks",robot.sensors.getDeltaL());
robot.changeData("Inch Drove",robot.sensors.getDeltaA()* Params.LateralInchPerTick);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import com.acmerobotics.roadrunner.Pose2d;
import com.qualcomm.robotcore.eventloop.opmode.TeleOp;

import org.firstinspires.ftc.teamcode.Params;
import org.firstinspires.ftc.teamcode.utils.Annotations.TuningOpModes;
import org.firstinspires.ftc.teamcode.utils.AutonomousProgramTemplate;

Expand All @@ -19,6 +20,7 @@ public void runOpMode() {
while (!isStopRequested()){
robot.update();
robot.changeData("Ticks",robot.sensors.getDeltaT());
robot.changeData("Deg Turned",robot.sensors.getDeltaT()* Params.TurningDegPerTick);
}
}
}

0 comments on commit acb2dd3

Please sign in to comment.