Skip to content

Commit

Permalink
Dashboard telemetry
Browse files Browse the repository at this point in the history
  • Loading branch information
SachetK committed Nov 14, 2024
1 parent 215e9b5 commit 190d5c4
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import com.acmerobotics.dashboard.config.Config
import com.acmerobotics.dashboard.telemetry.MultipleTelemetry
import com.arcrobotics.ftclib.command.CommandOpMode
import com.arcrobotics.ftclib.command.InstantCommand
import com.arcrobotics.ftclib.command.RunCommand
import com.arcrobotics.ftclib.hardware.motors.Motor
import com.qualcomm.robotcore.eventloop.opmode.TeleOp
import org.firstinspires.ftc.teamcode.constants.ControlBoard
Expand All @@ -29,6 +30,11 @@ class ArmPIDTuner : CommandOpMode() {
InstantCommand({
armSubsystem.setpoint = Math.toRadians(target)
}).perpetually().schedule()

RunCommand({
telemetry.addData("Arm Angle: ", armSubsystem.armAngle)
telemetry.addData("Setpoint: ", target)
})
}

companion object {
Expand Down

0 comments on commit 190d5c4

Please sign in to comment.