-
Notifications
You must be signed in to change notification settings - Fork 0
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
base: main
Are you sure you want to change the base?
Conversation
@@ -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 |
There was a problem hiding this comment.
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)); |
There was a problem hiding this comment.
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
|
No description provided.