|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||||
|
|||||
|
Re: Teleop Automated Sequences
Quote:
Changed to what? Did Mark's example code actually match the servo and motor that you have on your robot? What timing do you want it to have, and what timing are you experiencing? I can't help you if you only give me pre-interpreted and inconsistent information. For example, earlier you said 5000ms was giving you 1000, and now you call the discrepancy a factor of 10. You also referred to "motors" before, but Mark's code only has one motor. Please show the relevant part of your program, explain in detail what you're expecting it to do, and describe what you're seeing it do instead. Last edited by Alan Anderson : 23-03-2016 at 07:08. |
|
#2
|
|||
|
|||
|
Re: Teleop Automated Sequences
Hi Alan, I've updated a screen shot of our periodic task code. So regarding time changes, physically on robot code executes much faster than the times stated. You see anything that would cause this?
Thanks |
|
#3
|
|||||
|
|||||
|
Re: Teleop Automated Sequences
Thank you for the screen shot. It's actually quite different from the example Mark gave. There's no way I could have understood what you were trying to do based on your previous descriptions.
Now for the second part of what I asked: what exactly are you wanting it to do, and with what timing? Give me a detailed script of which motor is supposed to run, at what power and direction, at each moment of the sequence. Here's what I see the code doing:
Here's what I see that doesn't look quite right:
I don't see anything that matches your earlier mention of 5000 milliseconds. |
|
#4
|
||||
|
||||
|
Re: Teleop Automated Sequences
Here's what Alan is talking about. I also tried to interpret what you're doing by guessing, so this probably isn't correct.
Check out the logic on the last sequence frame... it doesn't do anything unless you want to wait a second between restarting the shooter sequence. Another added benefit of putting your RefNum Gets before the while loop is you only have one of each, which reduces the likelihood that you misspell the name and have something bad happen (if you have a interference mechanical design, such as what our robot has). This way, the whole mechanism works or doesn't work. Last edited by RyanN : 23-03-2016 at 09:15. |
|
#5
|
|||
|
|||
|
Re: Teleop Automated Sequences
Thanks guys, we will try out suggested changes on Thursday night and see if we can get it working.
|
|
#6
|
||||
|
||||
|
Re: Teleop Automated Sequences
To note, what I posted isn't a suggested change. I don't know what you want the code to do. I only based it off of what was definitely wrong in the code you posted earlier.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|