From 215e9b5e09dba34bcb8fda10c53d9ea0b39d832d Mon Sep 17 00:00:00 2001 From: Sachet Korada Date: Thu, 14 Nov 2024 18:04:07 -0500 Subject: [PATCH] Dashboard telemetry --- .idea/misc.xml | 3 ++- .../ftc/teamcode/opModes/tuning/arm/ArmPIDTuner.kt | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.idea/misc.xml b/.idea/misc.xml index b2c751a..3b0be22 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -1,6 +1,7 @@ + - + diff --git a/TeamCode/src/main/kotlin/org/firstinspires/ftc/teamcode/opModes/tuning/arm/ArmPIDTuner.kt b/TeamCode/src/main/kotlin/org/firstinspires/ftc/teamcode/opModes/tuning/arm/ArmPIDTuner.kt index 7228560..c9ee7cf 100644 --- a/TeamCode/src/main/kotlin/org/firstinspires/ftc/teamcode/opModes/tuning/arm/ArmPIDTuner.kt +++ b/TeamCode/src/main/kotlin/org/firstinspires/ftc/teamcode/opModes/tuning/arm/ArmPIDTuner.kt @@ -1,6 +1,8 @@ package org.firstinspires.ftc.teamcode.opModes.tuning.arm +import com.acmerobotics.dashboard.FtcDashboard 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.hardware.motors.Motor @@ -17,6 +19,8 @@ class ArmPIDTuner : CommandOpMode() { private lateinit var armSubsystem: ArmSubsystem override fun initialize() { + telemetry = MultipleTelemetry(telemetry, FtcDashboard.getInstance().telemetry) + armLeft = Motor(hardwareMap, ControlBoard.ARM_LEFT.deviceName, Motor.GoBILDA.RPM_435) armRight = Motor(hardwareMap, ControlBoard.ARM_RIGHT.deviceName, Motor.GoBILDA.RPM_435)