Skip to content

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


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.

3 participants