Skip to content

Commit

Permalink
different rumble method - will maybe work
Browse files Browse the repository at this point in the history
  • Loading branch information
nhamovitz committed Mar 25, 2019
1 parent f32cd1e commit 807e16f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/cpp/Robot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -879,8 +879,8 @@ void Robot::GetLimelight() {

#if DO_RUMBLE // Trying to set rumble on gamerJoystick, doesn't work
if (tx < 0) {
gamerJoystick.SetRumble(frc::Joystick::kLeftRumble, fabs(tx) / 30.);
gamerJoystick.SetRumble(frc::Joystick::kRightRumble, 0.);
gamerJoystick.SetRumble(frc::GenericHID::kLeftRumble, fabs(tx) / 30.);
gamerJoystick.SetRumble(frc::GenericHID::kRightRumble, 0.);
#if (DO_PRINTF || DO_DIAGNOSTIC)
printf("setting left rumble to %f\n", fabs(tx) / 30.);
#endif
Expand Down

0 comments on commit 807e16f

Please sign in to comment.