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

Gyro controls #17

Open
wants to merge 1 commit into
base: indigo-devel
Choose a base branch
from
Open

Conversation

bhavyada
Copy link

This is the code without the testing enhancements

@@ -275,6 +297,10 @@ void DiffDriveBaseController::update(const ros::Time& now, const ros::Duration&
double right_dx = angles::shortest_angular_distance(right_last_position_, right_pos)/radians_per_meter_;
double left_vel = static_cast<double>(left_->getVelocity())/radians_per_meter_;
double right_vel = static_cast<double>(right_->getVelocity())/radians_per_meter_;
double effort_l = static_cast<double>(left_->getEffort());
Copy link
Contributor

Choose a reason for hiding this comment

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

Is the effort that is being read from the motor being used anywhere?

Copy link
Author

Choose a reason for hiding this comment

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

No not being used.

Copy link
Author

Choose a reason for hiding this comment

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

I will remove the getEffort part.

@dbking77
Copy link
Contributor

Other than a few comments, LGTM. Once you make the suggested changes, could you rebase everything to a single commit?

@bhavyada
Copy link
Author

Yes will do. I was just waiting for the demo to get over to do the final
changes.

On Thu, Apr 28, 2016 at 10:35 AM, Derek notifications@github.com wrote:

Other than a few comments, LGTM. Once you make the suggested changes,
could you rebase everything to a single commit?


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
#17 (comment)

Bhavya Dayananda Kattapuni
Electrical engineer Intern
Fetch Robotics

P controller using gyro feedback
gain on effort around 6
gain on velocity around 0.8
@lucbettaieb
Copy link

@dbking77

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.

None yet

3 participants