2011:Autonomous: Difference between revisions
From 1511Wookiee
Jump to navigationJump to search
Programming (talk | contribs) No edit summary |
Programming (talk | contribs) No edit summary |
||
Line 74: | Line 74: | ||
*Move arm to '''low''' peg | *Move arm to '''low''' peg | ||
*Drive forward '''28?''' inches | *Drive forward '''28?''' inches | ||
|- | |||
| <br> | |||
| <br> | |||
| width="880" colspan="3" | | |||
*Eject tube | |||
*Back up same amount we drove forward <br> | |||
|- | |- | ||
| <br> | | <br> | ||
| width="880" colspan="4" | | | width="880" colspan="4" | | ||
*Go to -> Ending Action<br> | |||
*Go to -> Ending Action | |||
|} | |} | ||
Line 133: | Line 138: | ||
| <br> | | <br> | ||
| <br> | | <br> | ||
| width="880" colspan=" | | width="880" colspan="3" | | ||
*Eject tube<br> | *Eject tube<br> | ||
*Back up (Same distance as last drive forward) <br> | *Back up (Same distance as last drive forward) <br> | ||
*if right fork: turn -(60 + same angle as last turn) degrees<br> | *align robot so it is parallel to the line and same distance from wall as Straight Line and Dead Reckoning | ||
*if left fork: turn -(-60 + same angle as last turn) degrees | **if right fork: turn -(60 + same angle as last turn) degrees<br> | ||
*Drive Backwards ( | **if left fork: turn -(-60 + same angle as last turn) degrees | ||
**Drive Backwards (16 + 45 - same distance as last drove backward) inches [note: 45 is the amount from the front of the peg] | |||
|- | |- | ||
| <br> | | <br> | ||
| width="880" colspan="4" | | |||
| width="880" colspan=" | *Go to -> Ending Action<br> | ||
* | |||
|} | |} | ||
<br> | <br> | ||
Line 248: | Line 185: | ||
*Move arm to middle peg offset height | *Move arm to middle peg offset height | ||
*Have Manip. angle tube for middle peg offset height | *Have Manip. angle tube for middle peg offset height | ||
*Drive forward 24 inches | *Drive forward 24 inches<br> | ||
<br> | |||
| valign="top" align="left" width="250" | | | valign="top" align="left" width="250" | | ||
*Move arm to low peg offset height | *Move arm to low peg offset height | ||
*Have Manip. angle tube for low peg offset height | *Have Manip. angle tube for low peg offset height | ||
* Drive forward 30 inches | * Drive forward 30 inches<br> | ||
<br> | |- | ||
| <br> | |||
| <br> | |||
| width="880" colspan="3" | | |||
*Eject tube | |||
*Back up same amount we drove forward <br> | |||
|- | |- | ||
| <br> | | <br> | ||
| width="880" colspan="4" | | | width="880" colspan="4" | | ||
*Go to -> Ending Action | *Go to -> Ending Action | ||
Line 271: | Line 209: | ||
<br> | <br> | ||
{| cellspacing="1" cellpadding="1" border="1" width="750px" | {| cellspacing="1" cellpadding="1" border="1" width="750px" | ||
Line 308: | Line 238: | ||
*Move arm to middle peg height | *Move arm to middle peg height | ||
*Have Manip. angle tube for middle peg height | *Have Manip. angle tube for middle peg height | ||
*Drive forward 24 inches | *Drive forward 24 inches<br> | ||
<br> | |||
| valign="top" align="left" width="250" | | | valign="top" align="left" width="250" | | ||
*Move arm to low peg height | *Move arm to low peg height | ||
*Have Manip. angle tube for low peg height | *Have Manip. angle tube for low peg height | ||
* Drive forward 30 inches | * Drive forward 30 inches<br> | ||
<br> | |- | ||
| <br> | |||
| <br> | |||
| width="880" colspan="3" | | |||
*Eject tube | |||
*Back up same amount we drove forward <br> | |||
|- | |- | ||
| <br> | | <br> | ||
| width="880" colspan="4" | | | width="880" colspan="4" | | ||
*Go to -> Ending Action | *Go to -> Ending Action | ||
Line 330: | Line 261: | ||
<br> | <br> | ||
<br> <br> <br> | <br> | ||
<br> | |||
=== '''Ending Actions'''<br> === | |||
{| cellspacing="1" cellpadding="1" border="1" width="750px" | |||
|- | |||
| width="150" | '''Ending Action:''' | |||
| width="130" | 0 Do Nothing | |||
| width="250" | 1 Stay at pegs don't turn (do nothing # 2)<br> | |||
| width="250" | 2 Stay at pegs (turn 180) | |||
| width="250" | | |||
3 Drive backwards to midfield | |||
| width="250" | 4 Drive Backwards to midfield and turn 180 <br> | |||
| width="250" | 5 Drive to lane | |||
|- | |||
| <br> | |||
| <br> | |||
| width="880" colspan="5" | | |||
*Raise arm to max height | |||
| <br> | |||
|- | |||
| <br> | |||
| <br> | |||
| valign="top" align="left" width="250" | <br> | |||
| valign="top" align="left" width="250" | | |||
*Turn 180 degrees<br> | |||
| valign="top" align="left" width="250" | | |||
*Drive forward -245 inches. <br> <br> | |||
| valign="top" align="left" width="250" | | |||
*Drive forward -245 inches<br> | |||
*Turn 180 degrees | |||
| valign="top" align="left" width="250" | | |||
*<br> | |||
|- | |||
| <br> | |||
| width="880" colspan="6" | | |||
*Stop all motors | |||
*Wait for Teleoperated mode | |||
*Go to -> Teleoperated mode | |||
| <br> | |||
|} |
Revision as of 14:27, 12 February 2011
Autonomous Actions
We split it up into three stages:
1. Starting Positions and Actions (Approach the pegs)
2. Peg Height (Put Ubertube on pegs)
3. Ending action.
To tell the robot which set of actions to perform you select an autonomous mode using the classmate or a paper handbook, which tells you three numbers that you plug in using a keypad on the driver’s station. The robot understands and runs based on the numbers. (Example 000 tells the robot to do nothing during autonomous).
Start Positions and Actions
Start Positions and Actions: | 0 Do nothing | |||
Peg Height: | 0 Do Nothing | 1 Top Peg (Normal Height) | 2 Middle peg (Normal Height) | 3 Low peg (Normal Height) |
|
Start Positions and Actions: | 1 Follow straight line (Left side) and 2 Follow straight line (Right side) | |||
Peg Height: | 0 Do Nothing | 1 Top Peg (Normal Height) | 2 Middle peg (Normal Height) | 3 Low peg (Normal Height) |
| ||||
|
|
| ||
| ||||
|
Start Positions and Actions: | 3 Follow center line (Left fork) and 4 Follow center line (Right fork) | |||
Peg Height: | 0 Do Nothing | 1 Top Peg (Normal Height) | 2 Middle peg (Normal Height) | 3 Low peg (Normal Height) |
| ||||
|
|
| ||
| ||||
|
Start Positions and Actions: | Dead Reckoning offset pegs | |||
Peg Height: | 0 Do Nothing | 1 Top Peg (Offset Height) | 2 Middle peg (Offset Height) | 3 Low peg (Offset Height) |
| ||||
|
|
| ||
| ||||
|
Start Positions and Actions: | Dead Reckoning | |||
Peg Height: | 0 Do Nothing | 1 Top Peg (Normal Height) | 2 Middle peg (Normal Height) | 3 Low peg (Normal Height) |
| ||||
|
|
| ||
| ||||
|
Ending Actions
Ending Action: | 0 Do Nothing | 1 Stay at pegs don't turn (do nothing # 2) |
2 Stay at pegs (turn 180) |
3 Drive backwards to midfield |
4 Drive Backwards to midfield and turn 180 |
5 Drive to lane | |
|
|||||||
|
|
|
| ||||
|