Skip to content

Commit

Permalink
Added a slider for SFX dashboard that allows speed tweaking
Browse files Browse the repository at this point in the history
  • Loading branch information
C7C8 committed May 15, 2015
1 parent 2558a15 commit d0d58f6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/MecanumDrive.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/Robot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ namespace dreadbot
{
sysLog->log("Initializing Teleop.");
GlobalInit();
drivebase->GoSlow();
drivebase->GoFast();
}

void TeleopPeriodic()
Expand Down

0 comments on commit d0d58f6

Please sign in to comment.