src/Commands/AutoDrive.cpp
void AutoDrive::Execute() {
	if(IsStrafe)
		Robot::driveBase->Drive(this->LSpeed, this->RSpeed, this->SSpeed);
	else
		Robot::driveBase->TDrive(this->LSpeed, this->RSpeed);
}
// 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 AutoDrive::Execute() {
	if(IsStrafe)
		Robot::driveBase->Drive(this->LSpeed, this->RSpeed, this->SSpeed);
	else
		Robot::driveBase->TDrive(this->LSpeed, this->RSpeed);
}
void AutoDrive :: Execute ( ) { if ( IsStrafe ) Robot :: driveBase -> Drive ( this -> LSpeed , this -> RSpeed , this -> SSpeed ) ; else Robot :: driveBase -> TDrive ( this -> LSpeed , this -> RSpeed ) ; }
Called repeatedly when this Command is scheduled to run
Called repeatedly when this Command is scheduled to run