THis would be so awsome if someone wouuld know how to do this

Say in auto based off of how far out our goal grabber is our arm would go to the right distance as the goal grabber because right now it only works if we pull the goal in all the way