I've written a lot of functions for my robot for it's autonomous but I have the problem that they complete synchronously, while I need them to complete asynchronously. For example.
Open(); Drivestraight(3, 64); Grab(); wait(1);
These functions complete all at once for one second, which Is not desireable. I want the open() and Drivestraight() functions to complete before the next one begins, then the Grab() function to stop when I change the claw's values. If I need to, I'll post some more code.