Quote:
Originally Posted by Muzzle127
We turned time up wait time sequence to turn motors on to 5000msec and the response is around 1ooo msec. It executes the sequence, but not at the right times programmed. We could just keep increasing the time, but that doesn't seem correct. The while loop execution is 20msec. Is periodic task timing controlled by another variable that would overwrite the wait time function?
|
You run the motor at 75% power for 100 milliseconds, then turn it off for 1500 milliseconds, then run it at 100% power for 1000 milliseconds.
The 100 ms will make the motor twitch and you might not even see that depending on what it's attached to.
I'm guessing the 1500ms off period is your delayed response time you're seeing. The code is working exactly as you wrote it to work.
Maybe it'll help if you describe what you think it should do because all I can do is look at your code and guess.
You're also missing motor refnum inputs in sequences 3 and 4 for Shooter 2.
Your maximum response time is 100ms or less.