Skip to content

Commit

Permalink
Update LauncherManager.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Rvistix committed Mar 3, 2024
1 parent 213d1ff commit f2e33a5
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions src/main/cpp/subsystems/subsystemManagers/LauncherManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ void LauncherManager::ResetLauncher()
m_goToSubPos = false;
m_visionResetProfiledMoveState = false;
}
#include <iostream>
void LauncherManager::HandleInput(LauncherInput &launcherInput, LauncherOutput &launcherOutput, IntakeInput &intakeInput, IntakeOutput &intakeOutput)
{

Expand All @@ -28,7 +27,6 @@ void LauncherManager::HandleInput(LauncherInput &launcherInput, LauncherOutput &
m_goToSubPos = false;
}

std::cout << "setting to " << launcherInput.visionAngleSetpoint << ", " << launcherInput.visionSpeedSetpoint << std::endl;
m_launcher.SetFlywheelSpeed(launcherInput.visionSpeedSetpoint);
m_launcher.ProfiledMoveToAngle(launcherInput.visionAngleSetpoint);
}
Expand Down Expand Up @@ -76,15 +74,8 @@ void LauncherManager::HandleInput(LauncherInput &launcherInput, LauncherOutput &

if (launcherInput.runIndexerForward && !launcherInput.runIndexerBackward)
{
if (std::fabs(m_launcher.GetAngle() - STOW_ANGLE) <= 0.5 || m_goToStowPos)
{
m_launcher.SetIndexerSpeed(INDEXER_SPEED);
}
else

{
m_launcher.SetIndexerSpeed(0.5);
}

m_launcher.SetIndexerSpeed(INDEXER_SPEED);
}
else if (launcherInput.runIndexerBackward && !launcherInput.runIndexerForward)
{
Expand Down

0 comments on commit f2e33a5

Please sign in to comment.