From d0d58f673538ac727566c53eb696b705dd9ef268 Mon Sep 17 00:00:00 2001 From: Sourec Date: Fri, 15 May 2015 18:15:47 -0400 Subject: [PATCH] Added a slider for SFX dashboard that allows speed tweaking --- src/MecanumDrive.cpp | 2 +- src/Robot.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/MecanumDrive.cpp b/src/MecanumDrive.cpp index 1d0a1f2..5585d2f 100644 --- a/src/MecanumDrive.cpp +++ b/src/MecanumDrive.cpp @@ -95,7 +95,7 @@ void MecanumDrive::Drive_v(double x, double y, double rotation) { } */ for (uint8_t i = 0; i < MOTOR_COUNT; ++i) { - motors[i]->Set(wspeeds[i]*motorReversals[i]*1023, syncGroup); + motors[i]->Set(wspeeds[i]*motorReversals[i]*SmartDashboard::GetNumber("Speed", 1023.f), syncGroup); } } diff --git a/src/Robot.cpp b/src/Robot.cpp index 9cf5999..05e1030 100644 --- a/src/Robot.cpp +++ b/src/Robot.cpp @@ -113,7 +113,7 @@ namespace dreadbot { sysLog->log("Initializing Teleop."); GlobalInit(); - drivebase->GoSlow(); + drivebase->GoFast(); } void TeleopPeriodic()