-
Notifications
You must be signed in to change notification settings - Fork 0
Adding Vision to robot #53
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
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. |
andycate
left a comment
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
|
|
||
| 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.