2011:Autonomous: Difference between revisions
From 1511Wookiee
Jump to navigationJump to search
Programming (talk | contribs) mNo edit summary |
m (Autonomous moved to 2011:Autonomous) |
||
| (2 intermediate revisions by one other user not shown) | |||
| Line 1: | Line 1: | ||
= Autonomous Actions = | = Autonomous Actions = | ||
We split it up into three stages: | We split it up into three stages: | ||
<br> | #Starting Positions and Actions (Approach the pegs) with Peg Height (Put Ubertube on pegs) | ||
#Ending action | |||
#End Autonomous | |||
<br> | |||
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). | 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). | ||
| Line 9: | Line 13: | ||
=== '''Start Positions and Actions'''<br> === | === '''Start Positions and Actions'''<br> === | ||
{| cellspacing="1" cellpadding="1" border="1" width=" | {| cellspacing="1" cellpadding="1" border="1" width="750" | ||
|- | |- | ||
| width="150" | '''Start Positions and Actions:''' | | width="150" | '''Start Positions and Actions:''' | ||
| Line 26: | Line 30: | ||
| <br> | | <br> | ||
| <br> | | <br> | ||
| | | align="left" width="250" valign="top" | <br> | ||
| | | align="left" width="250" valign="top" | <br> | ||
| | | align="left" width="250" valign="top" | <br> | ||
|- | |- | ||
| <br> | | <br> | ||
| width="880" colspan="4" | | | width="880" colspan="4" | | ||
*Go to -> | *Go to -> End Autonomous | ||
|} | |} | ||
| Line 40: | Line 44: | ||
<br> | <br> | ||
{| cellspacing="1" cellpadding="1" border="1" width=" | {| cellspacing="1" cellpadding="1" border="1" width="750" | ||
|- | |- | ||
| width="150" | '''Start Positions and Actions:''' | | width="150" | '''Start Positions and Actions:''' | ||
| width="880" colspan="4" | 1 Follow straight line (Left side) and<br> 2 Follow straight line (Right side) | | width="880" colspan="4" | 1 Follow straight line (Left side) and<br>2 Follow straight line (Right side) | ||
|- | |- | ||
| width="150" | '''Peg Height:''' | | width="150" | '''Peg Height:''' | ||
| width="130" | 0 Do Nothing | | width="130" | 0 Do Nothing | ||
| width="250" | 1 Top Peg ( | | width="250" | 1 Top Peg (Offset Height) | ||
| width="250" | 2 Middle peg ( | | width="250" | 2 Middle peg (Offset Height) | ||
| width="250" | 3 Low peg ( | | width="250" | 3 Low peg (Offset Height) | ||
|- | |- | ||
| <br> | | <br> | ||
| Line 60: | Line 64: | ||
| <br> | | <br> | ||
| <br> | | <br> | ||
| | | align="left" width="250" valign="top" | | ||
*Have manip. twist tube to '''top''' peg angle | *Have manip. twist tube to '''top''' peg angle | ||
*Move arm to '''top''' peg | *Move arm to '''top''' peg | ||
*Drive Forward '''30?''' inches | *Drive Forward '''30?''' inches | ||
| | | align="left" width="250" valign="top" | | ||
*Have manip. twist tube to '''middle''' peg angle | *Have manip. twist tube to '''middle''' peg angle | ||
*'''arm doesn't move''' | *'''arm doesn't move''' | ||
*Drive Forward '''24?''' inches | *Drive Forward '''24?''' inches | ||
| | | align="left" width="250" valign="top" | | ||
*Have manip. twist tube to '''low''' peg angle | *Have manip. twist tube to '''low''' peg angle | ||
*Move arm to '''low''' peg | *Move arm to '''low''' peg | ||
| Line 80: | Line 84: | ||
| width="880" colspan="3" | | | width="880" colspan="3" | | ||
*Eject tube | *Eject tube | ||
*Back up same amount we drove forward | *Back up same amount we drove forward | ||
|- | |- | ||
| <br> | | <br> | ||
| width="880" colspan=" | | | ||
*Go to -> Ending Action | *Go to -> End Autonomous | ||
| width="880" colspan="3" | | |||
*Go to -> Ending Action | |||
|} | |} | ||
| Line 93: | Line 100: | ||
<br> | <br> | ||
{| cellspacing="1" cellpadding="1" border="1" width=" | {| cellspacing="1" cellpadding="1" border="1" width="750" | ||
|- | |- | ||
| width="150" | '''Start Positions and Actions:''' | | width="150" | '''Start Positions and Actions:''' | ||
| Line 108: | Line 115: | ||
| width="880" colspan="3" | | | width="880" colspan="3" | | ||
*Go foward to fork (while raising arm to middle peg offset.) | *Go foward to fork (while raising arm to middle peg offset.) | ||
*drive slightly more (to no longer see line, half the robot distance so we can turn correctly(19? inches)) | *drive slightly more (to no longer see line, half the robot distance so we can turn correctly(19? inches)) | ||
*Turn left/right until line is visible. | *Turn left/right until line is visible. | ||
|- | |- | ||
| <br> | | <br> | ||
| <br> | | <br> | ||
| | | align="left" width="250" valign="top" | | ||
*Tell Manip to angle tube to top peg positon | *Tell Manip to angle tube to top peg positon | ||
*Raise arm to top peg height | *Raise arm to top peg height | ||
*Drive forward (while following line) 60 inches | *Drive forward (while following line) 60? inches | ||
*Turn 28?/-28? degrees | *Turn 28?/-28? degrees | ||
*Go forward 24? inches | *Go forward 24? inches | ||
| | | align="left" width="250" valign="top" | | ||
*Tell Manip. to angle tube to middle peg positon. | *Tell Manip. to angle tube to middle peg positon. | ||
*Raise arm to middle peg height | *Raise arm to middle peg height | ||
* | *Drive forward (while following line) 60? inches | ||
*Turn 30?/-30? degrees | *Turn 30?/-30? degrees | ||
*Go forward 36? inches | *Go forward 36? inches | ||
| | | align="left" width="250" valign="top" | | ||
*Tell manipulator to angle tube to low peg position. | *Tell manipulator to angle tube to low peg position. | ||
*Raise arm to low peg height | *Raise arm to low peg height | ||
*Drive forward (while following line) 60 inches | *Drive forward (while following line) 60? inches | ||
*Turn 29?/-29? degrees | *Turn 29?/-29? degrees | ||
*Go forward 34? inches | *Go forward 34? inches | ||
|- | |- | ||
| Line 139: | Line 146: | ||
| <br> | | <br> | ||
| width="880" colspan="3" | | | width="880" colspan="3" | | ||
*Eject tube | *Eject tube | ||
*Back up (Same distance as last drive forward) | *Back up (Same distance as last drive forward) | ||
*align robot so it is parallel to the line and same distance from wall as Straight Line and Dead Reckoning | *align robot so it is parallel to the line and same distance from wall as Straight Line and Dead Reckoning | ||
**if right fork: turn -(60 + same angle as last turn) degrees | **if right fork: turn -(60 + same angle as last turn) degrees | ||
**if left fork: turn -(-60 + same angle as last turn) degrees | **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] | **Drive Backwards (16 + 45 - same distance as last drove backward) inches [note: 45 is the amount from the front of the peg] | ||
| Line 148: | Line 155: | ||
|- | |- | ||
| <br> | | <br> | ||
| width="880" colspan=" | | | ||
*Go to -> Ending Action | *Go to -> End Autonomous | ||
| width="880" colspan="3" | | |||
*Go to -> Ending Action | |||
|} | |} | ||
| Line 157: | Line 167: | ||
<br> | <br> | ||
{| cellspacing="1" cellpadding="1" border="1" width=" | {| cellspacing="1" cellpadding="1" border="1" width="750" | ||
|- | |- | ||
| width="150" | '''Start Positions and Actions:''' | | width="150" | '''Start Positions and Actions:''' | ||
| Line 172: | Line 182: | ||
| width="880" colspan="3" | | | width="880" colspan="3" | | ||
*Drive Forward 245? inches | *Drive Forward 245? inches | ||
*Raise arm to middle peg positon (while driving) | *Raise arm to middle peg positon (while driving) | ||
|- | |- | ||
| <br> | | <br> | ||
| <br> | | <br> | ||
| | | align="left" width="250" valign="top" | | ||
*Move arm to top peg offset height | *Move arm to top peg offset height | ||
*Have Manip. angle tube for top peg offset height | *Have Manip. angle tube for top peg offset height | ||
*Drive forward 36 inches | *Drive forward 36 inches | ||
| | | align="left" width="250" valign="top" | | ||
*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 | ||
| | | align="left" width="250" valign="top" | | ||
*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 | ||
|- | |- | ||
| Line 197: | Line 207: | ||
| width="880" colspan="3" | | | width="880" colspan="3" | | ||
*Eject tube | *Eject tube | ||
*Back up same amount we drove forward | *Back up same amount we drove forward | ||
|- | |- | ||
| <br> | | <br> | ||
| width="880" colspan=" | | | ||
*Go to -> End Autonomous | |||
| width="880" colspan="3" | | |||
*Go to -> Ending Action | *Go to -> Ending Action | ||
| Line 210: | Line 223: | ||
<br> | <br> | ||
{| cellspacing="1" cellpadding="1" border="1" width=" | {| cellspacing="1" cellpadding="1" border="1" width="750" | ||
|- | |- | ||
| width="150" | '''Start Positions and Actions:''' | | width="150" | '''Start Positions and Actions:''' | ||
| Line 225: | Line 238: | ||
| width="880" colspan="3" | | | width="880" colspan="3" | | ||
*Drive Forward 245? inches | *Drive Forward 245? inches | ||
*Raise arm to middle peg positon (while driving) | *Raise arm to middle peg positon (while driving) | ||
|- | |- | ||
| <br> | | <br> | ||
| <br> | | <br> | ||
| | | align="left" width="250" valign="top" | | ||
*Move arm to top peg height | *Move arm to top peg height | ||
*Have Manip. angle tube for top peg height | *Have Manip. angle tube for top peg height | ||
*Drive forward 36 inches | *Drive forward 36? inches | ||
| | | align="left" width="250" valign="top" | | ||
*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 | ||
| | | align="left" width="250" valign="top" | | ||
*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 | ||
|- | |- | ||
| Line 250: | Line 263: | ||
| width="880" colspan="3" | | | width="880" colspan="3" | | ||
*Eject tube | *Eject tube | ||
*Back up same amount we drove forward | *Back up same amount we drove forward | ||
|- | |- | ||
| <br> | | <br> | ||
| width="880" colspan=" | | | ||
*Go to -> End Autonomous | |||
| width="880" colspan="3" | | |||
*Go to -> Ending Action | *Go to -> Ending Action | ||
| Line 263: | Line 279: | ||
<br> | <br> | ||
<br> | <br> | ||
=== '''Ending Actions'''<br> | === '''Ending Actions'''<br> === | ||
{| | {| border="1" cellspacing="1" cellpadding="1" width="750" | ||
|- | |- | ||
| width="150" | '''Ending Action:''' | | width="150" | '''Ending Action:''' | ||
| width="130" | 0 Do Nothing | | width="130" | 0 Do Nothing | ||
| width="250" | 1 Stay at pegs don't turn (do nothing # 2)<br> | | width="250" | 1 Stay at pegs don't turn (do nothing # 2)<br> | ||
| width="250" | 2 Stay at pegs (turn 180) | | width="250" | 2 Stay at pegs (turn 180) | ||
| width="250" | | | width="250" | | ||
3 Go to Midfield (drive backwards) | 3 Go to Midfield (drive backwards) | ||
| width="250" | 4 Go to Midfield (turn 180) <br> | | width="250" | 4 Go to Midfield (turn 180) <br> | ||
| width="250" | 5 | | width="250" | 5 | ||
|- | |- | ||
| <br> | | <br> | ||
| <br> | | <br> | ||
| width="880" colspan="5" | | | width="880" colspan="5" | | ||
*Raise arm to max height | *Raise arm to max height | ||
|- | |||
| <br> | | <br> | ||
| <br> | |||
| valign="top" width="250" align="left" | <br> | |||
| <br> | | valign="top" width="250" align="left" | | ||
| valign="top" | |||
| valign="top" | |||
*Turn 180 degrees<br> | *Turn 180 degrees<br> | ||
| valign="top" | | valign="top" width="250" align="left" | | ||
*Drive backwards 229 inches [note: stay 3 feet away from midfield]<br> <br> | *Drive backwards 229? inches [note: stay 3 feet away from midfield]<br><br> | ||
| valign="top" | | valign="top" width="250" align="left" | | ||
*Drive backwards 229 inches [note: stay 3 feet away from midfield]<br> | *Drive backwards 229? inches [note: stay 3 feet away from midfield]<br> | ||
*Turn 180 degrees | *Turn 180 degrees | ||
| valign="top" | | valign="top" width="250" align="left" | | ||
|- | |- | ||
| <br> | | <br> | ||
| width="880" colspan="6" | | |||
*Go to -> End Autonomous | |||
|} | |||
<br> | |||
<br> | |||
<br> | |||
=== '''End Autonomous'''<br> === | |||
{| border="1" cellspacing="1" cellpadding="1" width="750" | |||
|- | |||
| <br> | |||
| width="880" colspan="6" | | | width="880" colspan="6" | | ||
*Stop all motors | *Stop all motors | ||
Latest revision as of 10:42, 6 January 2012
Autonomous Actions
We split it up into three stages:
- Starting Positions and Actions (Approach the pegs) with Peg Height (Put Ubertube on pegs)
- Ending action
- End Autonomous
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 (Offset Height) | 2 Middle peg (Offset Height) | 3 Low peg (Offset 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 Go to Midfield (drive backwards) |
4 Go to Midfield (turn 180) |
5 |
| ||||||
|
|
|
||||
| ||||||
End Autonomous
|
|||||||