My code will only run the reload aspect, and nothing after that. If I just run the wait and firing aspect, then it works fine. It just won’t work when combined. Does anyone have any advice on what to change?
As this is Programming Support, I believe @jpearman can help you with this. Now before we wait I am going to provide an unofficial response.
I believe the command SpinFor is a yielding function, which means that your code waits until a motor has spinned the designated degree before continuing.
More information about this:
If Motor1 and Motor2 are physically connected then it is likely the first call to Motor1.spinFor() blocks and never returns, because it cannot quite reach its destination.
Consider using nonblocking version of the Motor1.spinFor()/rotateFor() with last argument waitForCompletion=false and also setTimeout() for both motors to prevent them from hanging.