Quasics2019Code/AdaLovelace/src/main/cpp/Commands/TankDrive.cpp
// Called repeatedly when this Command is scheduled to run
Called repeatedly when this Command is scheduled to run
Called repeatedly when this Command is scheduled to run
void TankDrive::Execute() {
  const double leftSpeed = Robot::oi->GetLeftDriveStick();
  const double rightSpeed = Robot::oi->GetRightDriveStick();
  double speedMult = .6;
  Robot::driveBase->SetMotorSpeed(leftSpeed * -speedMult, rightSpeed * speedMult);
}
void TankDrive :: Execute ( ) { const double leftSpeed = Robot :: oi -> GetLeftDriveStick ( ) ; const double rightSpeed = Robot :: oi -> GetRightDriveStick ( ) ; double speedMult = .6 ; Robot :: driveBase -> SetMotorSpeed ( leftSpeed * - speedMult , rightSpeed * speedMult ) ; }
Called repeatedly when this Command is scheduled to run
Called repeatedly when this Command is scheduled to run