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

[nick] Added TODO and FIXME for potential bugs and improvements #23

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

nick-mcgill
Copy link
Contributor

No description provided.

@nick-mcgill nick-mcgill marked this pull request as ready for review March 2, 2025 23:35
@nick-mcgill nick-mcgill requested a review from Harsh-Sinha March 5, 2025 23:33
@nick-mcgill nick-mcgill enabled auto-merge (squash) March 5, 2025 23:33
@@ -6,7 +6,8 @@ void ControllerInterface::UpdateRobotControlData(RobotControlData &controlData)
UpdateSwerveInput(controlData);
UpdateLauncherInput(controlData);
UpdateSmartplannerInput(controlData);
// code for the VibrateController function

// TODO: Move vibration code into its own method
Copy link
Contributor

Choose a reason for hiding this comment

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

fix

@@ -60,11 +60,11 @@ double CoralLauncher::GetLeftWheelSpeed()
}
bool CoralLauncher::AreFlywheelsAtDesiredSpeed()
{
return ((abs(GetRightWheelSpeed() - m_desiredRightSpeed)<=SMALL_NUM)&&(abs(GetLeftWheelSpeed() - m_desiredLeftSpeed)<=SMALL_NUM));
return ((fabs(GetRightWheelSpeed() - m_desiredRightSpeed)<=FLYWHEEL_ERROR)&&(fabs(GetLeftWheelSpeed() - m_desiredLeftSpeed)<=FLYWHEEL_ERROR));
Copy link
Contributor

Choose a reason for hiding this comment

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

all fabs should be std::fabs... get rid of any using keyword in the cpp or header file

Copy link

sonarqubecloud bot commented Mar 8, 2025

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.

2 participants