View Single Post
  #13   Spotlight this post!  
Unread 23-03-2016, 08:48
RyanN's Avatar
RyanN RyanN is offline
RyanN
AKA: Ryan Nazaretian
FRC #4901 (Garnet Squadron)
Team Role: Mentor
 
Join Date: Jun 2006
Rookie Year: 2005
Location: Columbia, SC
Posts: 1,126
RyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond repute
Re: Teleop Automated Sequences

Quote:
Originally Posted by Muzzle127 View Post
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.
__________________
Garnet Squadron
FRC 4901
Controls Mentor
@rnazaretian

Previous mentor and student from Team Fusion, FRC 364

Last edited by RyanN : 23-03-2016 at 08:53.