Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changes to SmartIntake, need to be confirmed and pushed to master #18

Merged
merged 2 commits into from
Feb 21, 2024

Conversation

JoeyBrar
Copy link
Contributor

-Siddhant

@JoeyBrar
Copy link
Contributor Author

@Harsh-Sinha Please review. - Nick & Sid

Copy link
Contributor

@Harsh-Sinha Harsh-Sinha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall, good job. A couple bug fixes to be made.

default:
m_SmartIntakeFlag = false;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should not be in the default case. Make an explicit case for switching over to false. We use the default case to do nothing

break;
}
}
else
{
switch (m_IntakeState)
{
case 0:
case 2:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should start at case 0.

{
/* code */
input.intakeInput.runIntakeIn = true;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

checking if the laser hit should be in the true case. The if statement should conditionally transfer to the false case

default:
m_SmartOutTakeFlag = false;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see associated comment for intake

@@ -159,15 +125,18 @@ void SmartIntake::HandleInput(RobotControlData& input){

switch (m_OutTakeState)
{
case 0:
case 2:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see associated comment for intake

{
/* code */
input.intakeInput.runIntakeOut = true;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see associated comment for intake

@Harsh-Sinha Harsh-Sinha merged commit c0c4ac0 into master Feb 21, 2024
1 check passed
@nick-mcgill nick-mcgill deleted the SmartIntakeChanges branch February 21, 2024 23:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants