Quasics2018Code/Hedy-2019/src/main/cpp/Commands/AutoModeScoringCommand.cpp
// END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTOR

END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTOR
END AUTOGENERATED CODE SOURCE = ROBOTBUILDER ID = CONSTRUCTOR
bool AutoModeScoringCommand::Condition(){
	const std::string gameData = frc::DriverStation::GetInstance().GetGameSpecificMessage();
	if (gameData.empty()){
		return false;
	}
	bool shouldWeScoreOnSwitch = false;
	return shouldWeScoreOnSwitch;
}
bool AutoModeScoringCommand :: Condition ( ) { const std :: string gameData = frc :: DriverStation :: GetInstance ( ) . GetGameSpecificMessage ( ) ; if ( gameData . empty ( ) ) { return false ; } bool shouldWeScoreOnSwitch = false ; return shouldWeScoreOnSwitch ; }
END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTOR
END AUTOGENERATED CODE SOURCE = ROBOTBUILDER ID = CONSTRUCTOR
// If we're on the same side of the "arena" as our target on the switch, then we'll go for it.
 // If not, we'll just move forward.
 /*
	const bool ourSideIsLeftOnSwitch = (gameData[0] == 'L');
	Robot::RobotStartingPosition startingPosition = Robot::getStartingPosition();
	if (ourSideIsLeftOnSwitch && startingPosition == Robot::eStartingOnLeft) {
		shouldWeScoreOnSwitch = true;
	} else if (!ourSideIsLeftOnSwitch && startingPosition == Robot::eStartingOnRight) {
		shouldWeScoreOnSwitch = true;
	} else {
		// We're either in the middle, or else we're on the opposite side from the
		// target.  Either way, we aren't going to try to score on the switch.
		shouldWeScoreOnSwitch = false;
	}
	*/