2015:Robot IO Map: Difference between revisions

From 1511Wookiee
Jump to navigationJump to search
No edit summary
No edit summary
Line 705: Line 705:
| 2
| 2
| style="width: 158px;" | Raise center wheel<br/>
| style="width: 158px;" | Raise center wheel<br/>
| style="width: 281px;" | Wheel remains rasied while button is being pressed. Wheel lowers when button is released.<br/>
| style="width: 281px;" | .Wheel remains rasied while button is being pressed (or button 2 on right joystick is being pressed). Wheel lowers when both button 2s are released.<br/>
| style="width: 119px;" |  
| style="width: 119px;" |  
|-
|-
| 3
| 3
| style="width: 158px;" | Left/Right mode<br/>
| style="width: 158px;" | Left/Right mode<br/>
| style="width: 281px;" | In '''Left/Right mode''' while button is being pressed.
| style="width: 281px;" | In '''Left/Right mode''' while this button is being pressed (or button 3 on right joystick is being pressed).
| style="width: 119px;" |  
| style="width: 119px;" |  
|-
|-
Line 764: Line 764:
|}
|}


== Joystick 2 ==
== Joystick 2/Right ==


Same as 1
{| cellpadding="2" cellspacing="1" border="1" style="width: 666px;"
 
{| border="1" cellpadding="2" cellspacing="1" style="width: 666px;"
|-
|-
| '''Button/Axis'''
| '''Button/Axis'''
Line 774: Line 772:
| style="width: 280px; text-align: center;" | '''Operation'''
| style="width: 280px; text-align: center;" | '''Operation'''
| style="width: 142px; text-align: center;" | '''Notes'''
| style="width: 142px; text-align: center;" | '''Notes'''
|-
| X-axis
| style="width: 141px;" | Move Forward/Backward
| style="width: 280px;" |
<span style="line-height: 20.79px;">In '''Left/Right mode''', this moves nothing; otherwise this moves just the right side of the drivetrain.</span>
| style="width: 142px;" |
|-
| Y-axis
| style="width: 141px;" | Move Left/Right
| style="width: 280px;" | <span style="line-height: 20.79px;">In '''Left/Right mode''', this moves </span>the center wheel left/right; otherwise this move nothing.
| style="width: 142px;" |
|-
|-
| 1
| 1
| style="width: 141px;" |  
| style="width: 141px;" | <br/>
| style="width: 280px;" |  
| style="width: 280px;" | <br/>
| style="width: 142px;" |  
| style="width: 142px;" |  
|-
|-
| 2
| 2
| style="width: 141px;" |  
| style="width: 141px;" | &nbsp;Raise center wheel
| style="width: 280px;" |  
| style="width: 280px;" | Wheel remains rasied while button is being pressed (or button 2 on left joystick is being pressed). Wheel lowers when both button 2s are released.<br/>
| style="width: 142px;" |  
| style="width: 142px;" |  
|-
|-
| 3
| 3
| style="width: 141px;" | <br/>
| style="width: 141px;" | Left/Right mode<br/>
| style="width: 280px;" | <br/>
| style="width: 280px;" | <br/>In '''Left/Right mode''' while this button is being pressed (or button 3 on left joystick is being pressed).
| style="width: 142px;" |  
| style="width: 142px;" |  
|-
|-
| 4
| 4
| style="width: 141px;" | &nbsp;
| style="width: 141px;" |  
| style="width: 280px;" | <br/>
| style="width: 280px;" |  
| style="width: 142px;" |  
| style="width: 142px;" |  
|-
|-
| 5
| 5
| style="width: 141px;" | <br/>
| style="width: 141px;" |  
| style="width: 280px;" | <br/>
| style="width: 280px;" |  
| style="width: 142px;" |  
| style="width: 142px;" |  
|-
|-
Line 831: Line 841:
|-
|-
| 12
| 12
| style="width: 141px;" |
| style="width: 280px;" |
| style="width: 142px;" |
|-
| X-axis
| style="width: 141px;" |
| style="width: 280px;" |
| style="width: 142px;" |
|-
| Y-axis
| style="width: 141px;" |  
| style="width: 141px;" |  
| style="width: 280px;" |  
| style="width: 280px;" |  
Line 853: Line 853:
== Joystick 3 ==
== Joystick 3 ==


{| border="1" cellpadding="2" cellspacing="1" style="width: 666px;"
{| cellpadding="2" cellspacing="1" border="1" style="width: 666px;"
|-
|-
| '''Button/Axis'''
| '''Button/Axis'''
Line 860: Line 860:
| style="width: 131px; text-align: center;" | '''Notes'''<br/>
| style="width: 131px; text-align: center;" | '''Notes'''<br/>
|-
|-
| 1
| 1/trigger
| style="width: 140px;" | Grips
| style="width: 140px;" | Close lower grips
| style="width: 292px;" |  
| style="width: 292px;" |  
Hold means lower grips are closed (If needed, flip broken switch which means click to close)
Closes the grips while this button is being pressed. Grips stop moving when this button and button #2 are both released.
 
Released means lower grips are open (If needed, flip broken switch which means click button 2 to open)


| style="width: 131px;" | <br/>
| style="width: 131px;" | <br/>
|-
|-
| 2
| 2
| style="width: 140px;" |  
| style="width: 140px;" | Open lower grips
| style="width: 292px;" | If broken switch is flipped, open lower grips
| style="width: 292px;" | Opens the grips while this button is being pressed (and button #1 is released). Grips stop moving when this button and button #1 are both released.
| style="width: 131px;" |  
| style="width: 131px;" |  
|-
|-
| 3
| 3
| style="width: 140px;" |  
| style="width: 140px;" | Level 3 Preset
| style="width: 292px;" | Possibly use for "level 3" preset so tote is high enough to put on top of 2 totes created by human player
| style="width: 292px;" | Raise grips high enough to be above 2 totes (i.e. 2 tote stack created by human player at human player station). Grips raise and stay raised while the button is being pressed. While being pressed, the Y-axis is ignored. When button is released, Y-axis controls grip height.
| style="width: 131px;" | <br/>
| style="width: 131px;" | <br/>
|-
|-
| 4
| 4
| style="width: 140px;" | <br/>
| style="width: 140px;" | <br/>TBD - RC gripper
| style="width: 292px;" | Close Upper grips
| style="width: 292px;" |  
| style="width: 131px;" |  
| style="width: 131px;" |  
|-
|-
| 5
| 5
| style="width: 140px;" |  
| style="width: 140px;" | TBD - RC gripper
| style="width: 292px;" | Open Upper grips
| style="width: 292px;" |  
| style="width: 131px;" |  
| style="width: 131px;" |  
|-
|-
| 6
| 6
| style="width: 140px;" | (or 8)
| style="width: 140px;" | Close/open uper grips
| style="width: 292px;" | Pull RC grabber back in
| style="width: 292px;" | Closes the grips while this button is being pressed. Open the grips when button is released.
| style="width: 131px;" |  
| style="width: 131px;" |  
|-
|-
| 7
| 7
| style="width: 140px;" | (or 9)
| style="width: 140px;" |  
| style="width: 292px;" | Release RC grabber to get can
| style="width: 292px;" | Release RC grabber to get can
| style="width: 131px;" |  
| style="width: 131px;" |  
Line 930: Line 928:
|-
|-
| Y-axis
| Y-axis
| style="width: 140px;" | Move
| style="width: 140px;" | Move up/down
| style="width: 292px;" | Lower grip up/down, control speed of movement
| style="width: 292px;" | Raise/lower&nbsp;grips, if '''Level 3 Preset''' not being pressed.&nbsp;This&nbsp;controls speed of movement.
| style="width: 131px;" |  
| style="width: 131px;" |  
|-
|-
Line 940: Line 938:
|}
|}


== Joystick 4 ==
== Joystick 4/LaunchPad ==


{| border="1" cellpadding="2" cellspacing="1" style="width: 671px;"
{| cellpadding="2" cellspacing="1" border="1" style="width: 671px;"
|-
|-
| '''Button/Axis'''
| '''Button/Axis'''
Line 950: Line 948:
|-
|-
| 1
| 1
| style="width: 172px;" |  
| style="width: 172px;" | Auto 'main'
| style="width: 277px;" |  
| style="width: 277px;" | Active when 3-way Auto switch is 'up'. This will pick the hard coded/defined auto mode.
| style="width: 119px;" |  
| style="width: 119px;" |  
|-
|-
| 2
| 2
| style="width: 172px;" |  
| style="width: 172px;" | Auto 'dashboard'
| style="width: 277px;" |  
| style="width: 277px;" | Active when 3-way Auto switch is 'down'. This will indicate that the auto mode selected in the Dashboard is to be used.
| style="width: 119px;" |  
| style="width: 119px;" |  
|-
|-
| 3
| 3
| style="width: 172px;" |  
| style="width: 172px;" | Broken #1
| style="width: 277px;" |  
| style="width: 277px;" |  
| style="width: 119px;" |  
future
 
| style="width: 119px;" | left-most switch on top row
|-
|-
| 4
| 4
| style="width: 172px;" |  
| style="width: 172px;" | Broken #2
| style="width: 277px;" |  
| style="width: 277px;" | future
| style="width: 119px;" |  
| style="width: 119px;" | located to the right of Broken #1
|-
|-
| 5
| 5
| style="width: 172px;" |  
| style="width: 172px;" | Broken #3
| style="width: 277px;" |  
| style="width: 277px;" | future
| style="width: 119px;" |  
| style="width: 119px;" | located to the left of Broken #4
|-
|-
| 6
| 6
| style="width: 172px;" |  
| style="width: 172px;" | Broken #4
| style="width: 277px;" |  
| style="width: 277px;" | future
| style="width: 119px;" |  
| style="width: 119px;" | right-most switch on top row
|-
|-
| 7
| 7
| style="width: 172px;" |  
| style="width: 172px;" | Broken #5
| style="width: 277px;" |  
| style="width: 277px;" | future
| style="width: 119px;" |  
| style="width: 119px;" | left-most switch on bottom row
|-
|-
| 8
| 8
| style="width: 172px;" |  
| style="width: 172px;" | Broken #6
| style="width: 277px;" |  
| style="width: 277px;" | future
| style="width: 119px;" | .
| style="width: 119px;" | lcated to the right of Broken #5
|-
|-
| 9
| 9
| style="width: 172px;" |  
| style="width: 172px;" | Broken #7
| style="width: 277px;" |  
| style="width: 277px;" | future
| style="width: 119px;" |  
| style="width: 119px;" | located to the left of Broken #8
|-
|-
| 10
| 10
| style="width: 172px;" |  
| style="width: 172px;" | Broken #8
| style="width: 277px;" |  
| style="width: 277px;" | future
| style="width: 119px;" |  
| style="width: 119px;" | Right-most switch on bottom row
|-
| 11
| style="width: 172px;" |
| style="width: 277px;" |
| style="width: 119px;" |
|-
| 12
| style="width: 172px;" |
| style="width: 277px;" |
| style="width: 119px;" |
|-
| X-axis
| style="width: 172px;" |
| style="width: 277px;" |
| style="width: 119px;" |
|-
| Y-axis
| style="width: 172px;" |
| style="width: 277px;" |
| style="width: 119px;" |
|-
| Z-axis
| style="width: 172px;" |
| style="width: 277px;" |
| style="width: 119px;" |
|-
| <br/>
| style="width: 172px;" | <br/>
| style="width: 277px;" | <br/>
| style="width: 119px;" | <br/>
|}
|}


= IO Maps for Old Robots =
= IO Maps for Old Robots =

Revision as of 17:41, 21 January 2015

Robot I/O

CAN ID Assignments

ID Subsystem

Component

Type

Model # Description
(brief)
Controlled By Operation Notes
0 RESERVED

n/a


Factory-default
allows for adding CTRE devices quickly and re-assign its ID


don't use

1 RESERVED n/a
Factory-default
allows for adding Jaguar quickly and re-assign its ID


don't use
2 drivetrain motor CIM Left Front Drive driver1 joystick y axis
3 drivetrain motor CIM Left Rear Drive driver1 joystick
y axis
4 drivetrain motor CIM Right Front Drive driver1 joystick
y axis
5 drivetrain motor CIM Right Rear Drive driver1 joystick
y axis
6 drivetrain motor CIM Strafe driver1 joystick x axis unclear on how to activate this motor
7 lifter motor RS775 Left lifter driver2 joystick y axis
8 lifter motor RS775 Right lifter driver2 joystick y axis
9 gripper motor RS550 Gripper/Motor driver2 joystick trigger button (depressed trigger = gripper closed)
10 pnuematics PCM module N/A Stabilizer, Shifter, Strafing roborio
11 power dist. PD module N/A Power Distribution Readback roborio
12



13



14



15



16



PWM Outputs

ID Subsystem

Component

Type

Model # Description
(brief)
Controlled By

Operation


Notes
1




2



3



4



5



6



7







8







9




10





Relay Outputs

ID Subsystem

Component

Type

Model # Description
(brief)
Controlled By Operation Notes
1



2



3



4



Analog Inputs

ID Subsystem

Component

Type

Model # Description
(brief)
Controlled By Operation

Voltage

Range

Notes
1 drivetrain gyro ? drivetrain gyro
Used in Autonomous ?
2




3




4




Digital IO (GPIO)

ID Direction
(IN/OUT)
Subsystem

Component

Type

Model # Description
(brief)
Controlled By Operation Notes
1 IN drivetrain Encoder  ? Left Encoder, Phase A
Position measurement
2 IN drivetrain Encoder  ? Right Encoder, Phase A
Position measurement
3 IN gripper Banner Sensor  ? Gripper Wide Tote Config. N/A Wide Position
4 IN lifter Encoder  ? Lifter Height  N/A Lifter Height Synced with Lifter Flag Sensor
5 IN lifter Flag Sensor  ? Home Position Height Level N/A
6 IN gripper Encoder  ? Encoder Phase A N/A Gripper Position
7 IN gripper Encoder  ? Encoder Phase B N/A Gripper Position
8
IN gripper Flag Sensor  ? Home Gripper Position N/A
9
IN gripper Ultrasonic Sensor  ? Right Gripper Proximity N/A Distance Between Gripper Arm and Tote
10 IN gripper Ultrasonic Sensor  ? Left Gripper Proximity N/A Distance Between Gripper Arm and Tote

I2C Registers

Address
(e.g. 0100111X)
Pin
(e.g. GP0)
Subsystem

Component

Type

Model # Description
(brief)
Controlled By Operation Notes
0



1



2



3



4



5



6




Pneumatics Control Module

ID Subsystem

Component

Type

Model #

Description

(brief)

Controlled By Operation Notes
1 drivetrain Valve  ? shifter UP driver1 joystick shifts up
2 drivetrain Valve  ? shifter DOWN driver1 joystick shifts down
3 drivetrain Valve  ? strafing wheel DOWN driver1 joystick
lowers strafing wheel
4 drivetrain Valve  ? strafing wheel UP driver1 joystick raises strafing wheel Optional (the UP position is supposed to be spring returned)
5 stabilizer Valve  ? Stabilizer Gripper IN driver2 joystick
closes stabilizer
6 stabilizer Valve  ? Stabilizer Gripper OUT driver2 joystick
opens stabilizer Optional (the OUT position is supposed to be spring return)
7



8



Operator Controls

Joystick 1/Left

Button/Axis Description
(brief)
Operation Notes
Y-Axis Move Forward/Backward

In Left/Right mode, this moves boths sides of the drivetrain; otherwise this moves just the left side of the drivetrain.

X-Axis 
1/trigger
2 Raise center wheel
.Wheel remains rasied while button is being pressed (or button 2 on right joystick is being pressed). Wheel lowers when both button 2s are released.
3 Left/Right mode
In Left/Right mode while this button is being pressed (or button 3 on right joystick is being pressed).
4
5
6
7
8
9
10
11
12
Z-axis

Joystick 2/Right

Button/Axis Description
(brief)
Operation Notes
X-axis Move Forward/Backward

In Left/Right mode, this moves nothing; otherwise this moves just the right side of the drivetrain.

Y-axis Move Left/Right In Left/Right mode, this moves the center wheel left/right; otherwise this move nothing.
1

2  Raise center wheel Wheel remains rasied while button is being pressed (or button 2 on left joystick is being pressed). Wheel lowers when both button 2s are released.
3 Left/Right mode

In Left/Right mode while this button is being pressed (or button 3 on left joystick is being pressed).
4
5
6
7
8
9
10
11
12
Z-axis

Joystick 3

Button/Axis Description
(brief)
Operation
Notes
1/trigger Close lower grips

Closes the grips while this button is being pressed. Grips stop moving when this button and button #2 are both released.


2 Open lower grips Opens the grips while this button is being pressed (and button #1 is released). Grips stop moving when this button and button #1 are both released.
3 Level 3 Preset Raise grips high enough to be above 2 totes (i.e. 2 tote stack created by human player at human player station). Grips raise and stay raised while the button is being pressed. While being pressed, the Y-axis is ignored. When button is released, Y-axis controls grip height.
4
TBD - RC gripper
5 TBD - RC gripper
6 Close/open uper grips Closes the grips while this button is being pressed. Open the grips when button is released.
7 Release RC grabber to get can
8
9
10
11
12
X-axis
Y-axis Move up/down Raise/lower grips, if Level 3 Preset not being pressed. This controls speed of movement.
Z-axis

Joystick 4/LaunchPad

Button/Axis Description
(brief)
Operation Notes
1 Auto 'main' Active when 3-way Auto switch is 'up'. This will pick the hard coded/defined auto mode.
2 Auto 'dashboard' Active when 3-way Auto switch is 'down'. This will indicate that the auto mode selected in the Dashboard is to be used.
3 Broken #1

future

left-most switch on top row
4 Broken #2 future located to the right of Broken #1
5 Broken #3 future located to the left of Broken #4
6 Broken #4 future right-most switch on top row
7 Broken #5 future left-most switch on bottom row
8 Broken #6 future lcated to the right of Broken #5
9 Broken #7 future located to the left of Broken #8
10 Broken #8 future Right-most switch on bottom row

IO Maps for Old Robots