Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use MultipleTelemetry for ForwardPushTest and LateralPushTest #11

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,7 @@ private fun avgPos(es: List<Encoder>) = es.sumOf { it.getPositionAndVelocity().p

class ForwardPushTest(val dvf: DriveViewFactory) : LinearOpMode() {
override fun runOpMode() {
telemetry = MultipleTelemetry(telemetry, FtcDashboard.getInstance().telemetry)
val view = dvf.make(hardwareMap)

for (m in view.motors) {
Expand Down Expand Up @@ -439,6 +440,7 @@ fun lateralSum(view: DriveView): Double {

class LateralPushTest(val dvf: DriveViewFactory) : LinearOpMode() {
override fun runOpMode() {
telemetry = MultipleTelemetry(telemetry, FtcDashboard.getInstance().telemetry)
val view = dvf.make(hardwareMap)

require(view.type == DriveType.MECANUM) {
Expand Down Expand Up @@ -474,7 +476,7 @@ class ManualFeedforwardTuner(val dvf: DriveViewFactory) : LinearOpMode() {
}

override fun runOpMode() {
val telemetry = MultipleTelemetry(this.telemetry, FtcDashboard.getInstance().telemetry)
telemetry = MultipleTelemetry(telemetry, FtcDashboard.getInstance().telemetry)

val view = dvf.make(hardwareMap)
val profile = TimeProfile(constantProfile(
Expand Down Expand Up @@ -558,7 +560,7 @@ class MecanumMotorDirectionDebugger(val dvf: DriveViewFactory) : LinearOpMode()
"Only mecanum drives should run this op mode."
}

val telemetry = MultipleTelemetry(this.telemetry, FtcDashboard.getInstance().telemetry)
telemetry = MultipleTelemetry(telemetry, FtcDashboard.getInstance().telemetry)

telemetry.addLine("Press play to begin the debugging op mode")
telemetry.update()
Expand Down Expand Up @@ -634,7 +636,7 @@ class DeadWheelDirectionDebugger(val dvf: DriveViewFactory) : LinearOpMode() {
"Only run this op mode if you're using dead wheels."
}

val telemetry = MultipleTelemetry(this.telemetry, FtcDashboard.getInstance().telemetry)
telemetry = MultipleTelemetry(telemetry, FtcDashboard.getInstance().telemetry)

waitForStart()

Expand Down