-
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
Adding Vision to robot #53
base: master
Are you sure you want to change the base?
Conversation
public override fun update() { | ||
|
||
if (!vision.hasValidTarget) { | ||
drivetrain.setVelocity(0.0, 0.0) |
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.
Maybe coast here?
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.
Will check this.
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. |
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.
Please fix the stuff I commented on
|
||
public override fun next(): Boolean { | ||
return super.timedOut() || ( | ||
vision.distanceToTarget < Constants.Vision.TARGET_DISTANCE // && |
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.
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 |
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.
Add this function to the getState
function
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.
Ok.
No description provided.