Skip to content
This repository has been archived by the owner on Feb 14, 2023. It is now read-only.

add a functional interface to allow speed to vary with distance for auton #16

Open
gabrielseaver9678 opened this issue Sep 3, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@gabrielseaver9678
Copy link
Member

In AutonDrive and AutonDriveSimple, speed is passed to the command as a double through the constructor method. I believe AutonDrive has an option to reduce the speed as the robot approaches the endpoint, but it’s clunky and only works so well.

Try to implement a system which allows a functional interface (taking proportion of distance to the endpoint as a parameter) to be passed in instead of a double to AutonDrive and AutonDriveSimple.

Make sure to talk to me before you implement this, though—I’m not quite finished with setting up all the other systems which you’ll need before adding this functionality and I’d like to talk before anyone spends time working on this.

@gabrielseaver9678 gabrielseaver9678 added the enhancement New feature or request label Sep 3, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant