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

Adding Vision to robot #53

Open
wants to merge 29 commits into
base: master
Choose a base branch
from
Open

Adding Vision to robot #53

wants to merge 29 commits into from

Conversation

BBScholar
Copy link
Contributor

No description provided.

@BBScholar BBScholar requested a review from andycate March 13, 2019 04:38
andycate
andycate previously approved these changes Mar 13, 2019
public override fun update() {

if (!vision.hasValidTarget) {
drivetrain.setVelocity(0.0, 0.0)
Copy link
Member

Choose a reason for hiding this comment

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

Maybe coast here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Will check this.

@BBScholar
Copy link
Contributor Author

Im using the same exact PID loops + math to calculate velocities in both the auto action and teleop controller. How turn this into a function somewhere.

Copy link
Member

@andycate andycate left a comment

Choose a reason for hiding this comment

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

Please fix the stuff I commented on


public override fun next(): Boolean {
return super.timedOut() || (
vision.distanceToTarget < Constants.Vision.TARGET_DISTANCE // &&
Copy link
Member

Choose a reason for hiding this comment

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

Does this work? I'm concerned that this condition wont ever be satisfied

@@ -21,6 +21,8 @@ public interface IDriverControls {

public fun getStow(): Boolean

public fun getAutoAlign(): Boolean
Copy link
Member

Choose a reason for hiding this comment

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

Add this function to the getState function

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok.

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