|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools |
Rating:
|
Display Modes |
|
|
|
#1
|
||||
|
||||
|
Re: Autonomous Independent vi question
/facepalm/
Thanks Mark. Of course they are labels and not variables. I saw the word "string" and the alarms went off in my head. |
|
#2
|
||||
|
||||
|
Correct me if I'm wrong, the first case statement in the while loop (Straight,Right,Left) will be set to Straight if the DS switch are set to 2 or 3. That will allow a two sec delay before generating a true for the next case statement (0,1,7,default) only when it’s in the 7 state (Determined by (TTT) on the three line sensors. So if that occurs then the robot stops and the while loop is exited. Then we add code after the while loop to place the tube on a post.
If we entered Right or left on the drivers switches we are given 4 seconds delay before we can shut down the robot motors at the State 7. of the next case statement. This allows the robot to have passed the Y turn ( which might generate a State 7 indication). So we need to make sure the robot passes that Y before 4 seconds are up. And in any case the while loop will shut down the robot motors after 8 seconds. Does this sound about right? Are the values on the autonomous VI front panel the values in the Power Profile array? Also are the drivers station switches set when they show Green? Thanks for your time |
|
#3
|
|||
|
|||
|
Re: Autonomous Independent vi question
Your summary of the default auto code is about right. Keep in mind that the 2 and four second numbers are a starting point. They were added to keep the Y and the occasional TTT due to a bad starting position from being interpreted as the T at the end of the line. Adjust according to your robot speed.
The values on the front panel are the power profile array. If you modify them to better suit your robot, don't forget to right click and Make Current Values Default. I believe that the DS buttons are lit green when the robot reads a true. You may want to probe to be certain. Greg McKaskle |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|