2012:Controls IO Pinout: Difference between revisions
From 1511Wookiee
Jump to navigationJump to search
Programming (talk | contribs) No edit summary |
No edit summary |
||
Line 109: | Line 109: | ||
HID supports 6 axes and X digital buttons | HID supports 6 axes and X digital buttons | ||
{| | {| frame="VOID" cellspacing="0" rules="NONE" border="0" | ||
|- | |- | ||
| Control | | width="150" height="18" align="LEFT" | <u>Control</u> | ||
| Hardware | | width="86" align="LEFT" | <u>Hardware</u> | ||
| Type | | width="86" align="LEFT" | <u>Type</u> | ||
| Mapped To | | width="86" align="LEFT" | <u>Mapped To</u> | ||
|- | |- | ||
| | | height="18" align="LEFT" | Bridge Actuator Brkn | ||
| | | align="LEFT" | Toggle | ||
| Digital | | align="LEFT" | Digital | ||
| D1 | | align="LEFT" | D1 | ||
|- | |- | ||
| | | height="18" align="LEFT" | Turret Angle Brkn | ||
| | | align="LEFT" | Toggle | ||
| Digital | | align="LEFT" | Digital | ||
| D2 | | align="LEFT" | D2 | ||
|- | |- | ||
| Shooter | | height="18" align="LEFT" | Shooter Speed Brkn | ||
| | | align="LEFT" | Toggle | ||
| Digital | | align="LEFT" | Digital | ||
| | | align="LEFT" | D3 | ||
|- | |- | ||
| | | height="18" align="LEFT" | Extra Brkn 1 | ||
| Toggle | | align="LEFT" | Toggle | ||
| Digital | | align="LEFT" | Digital | ||
| | | align="LEFT" | D4 | ||
|- | |- | ||
| | | height="18" align="LEFT" | Extra Brkn 2 | ||
| Toggle | | align="LEFT" | Toggle | ||
| Digital | | align="LEFT" | Digital | ||
| | | align="LEFT" | D5 | ||
|- | |- | ||
| | | height="18" align="LEFT" | Extra Brkn 3 | ||
| Toggle | | align="LEFT" | Toggle | ||
| Digital | | align="LEFT" | Digital | ||
| | | align="LEFT" | D6 | ||
|- | |- | ||
| | | height="18" align="LEFT" | Conveyor Brkn | ||
| Toggle | | align="LEFT" | Toggle | ||
| Digital | | align="LEFT" | Digital | ||
| | | align="LEFT" | D7 | ||
|- | |- | ||
| | | height="18" align="LEFT" | Extra Brkn 4 | ||
| Toggle | | align="LEFT" | Toggle | ||
| Digital | | align="LEFT" | Digital | ||
| | | align="LEFT" | D8 | ||
|- | |- | ||
| | | height="18" align="LEFT" | Ball Collection Dir. Sw. | ||
| Toggle | | align="LEFT" | 3 Pos Toggle | ||
| Digital | | align="LEFT" | Digital | ||
| | | align="LEFT" | D9,D10 | ||
|- | |- | ||
| | | height="18" align="LEFT" | Shoot Height Sw | ||
| Toggle | | align="LEFT" | 3 Pos Toggle | ||
| Digital | | align="LEFT" | Digital | ||
| D12 | | align="LEFT" | D11,D12 | ||
|- | |- | ||
| | | height="18" align="LEFT" | Turret Yaw | ||
| | | align="LEFT" | Pot | ||
| | | align="LEFT" | Analog | ||
| | | align="LEFT" | A1 (X) | ||
|- | |- | ||
| | | height="18" align="LEFT" | Shooter Power | ||
| | | align="LEFT" | Linear Pot | ||
| | | align="LEFT" | Analog | ||
| | | align="LEFT" | A2 (Y) | ||
|- | |- | ||
| Extra | | height="18" align="LEFT" | Extra Pot 1 | ||
| | | align="LEFT" | Pot | ||
| | | align="LEFT" | Analog | ||
| | | align="LEFT" | A3 (Z) | ||
|- | |- | ||
| | | height="18" align="LEFT" | Extra Pot 2 | ||
| Pot | | align="LEFT" | Pot | ||
| Analog | | align="LEFT" | Analog | ||
| | | align="LEFT" | A4 (Rx) | ||
|- | |- | ||
| | | height="18" align="LEFT" | <br/> | ||
| | | align="LEFT" | <br/> | ||
| | | align="LEFT" | <br/> | ||
| | | align="LEFT" | '''''A5 (Ry)''''' | ||
|- | |- | ||
| | | height="18" align="LEFT" | Segment 1 Bit 0 | ||
| | | align="LEFT" | A | ||
| Analog | | align="LEFT" | Analog Bit | ||
| | | align="LEFT" | A5 B0 | ||
|- | |- | ||
| | | height="18" align="LEFT" | Segment 1 Bit 1 | ||
| | | align="LEFT" | FOUR | ||
| Analog | | align="LEFT" | Analog Bit | ||
| | | align="LEFT" | A5 B1 | ||
|- | |||
| height="18" align="LEFT" | Segment 1 Bit 2 | |||
| align="LEFT" | BIT | |||
| align="LEFT" | Analog Bit | |||
| align="LEFT" | A5 B2 | |||
|- | |||
| height="18" align="LEFT" | Segment 1 Bit 3 | |||
| align="LEFT" | NUMBER | |||
| align="LEFT" | Analog Bit | |||
| align="LEFT" | A5 B3 | |||
|- | |||
| height="18" align="LEFT" | Segment 2 Bit 0 | |||
| align="LEFT" | A | |||
| align="LEFT" | Analog Bit | |||
| align="LEFT" | A5 B4 | |||
|- | |||
| height="18" align="LEFT" | Segment 2 Bit 1 | |||
| align="LEFT" | FOUR | |||
| align="LEFT" | Analog Bit | |||
| align="LEFT" | A5 B5 | |||
|- | |||
| height="18" align="LEFT" | Segment 2 Bit 2 | |||
| align="LEFT" | BIT | |||
| align="LEFT" | Analog Bit | |||
| align="LEFT" | A5 B6 | |||
|- | |||
| height="18" align="LEFT" | Segment 2 Bit 3 | |||
| align="LEFT" | NUMBER | |||
| align="LEFT" | Analog Bit | |||
| align="LEFT" | A5 B7 | |||
|- | |||
| height="18" align="LEFT" | <br/> | |||
| align="LEFT" | <br/> | |||
| align="LEFT" | <br/> | |||
| align="LEFT" | '''''A6 (Rz)''''' | |||
|- | |||
| height="18" align="LEFT" | Segment 3 Bit 0 | |||
| align="LEFT" | A | |||
| align="LEFT" | Analog Bit | |||
| align="LEFT" | A6 B0 | |||
|- | |||
| height="18" align="LEFT" | Segment 3 Bit 1 | |||
| align="LEFT" | FOUR | |||
| align="LEFT" | Analog Bit | |||
| align="LEFT" | A6 B1 | |||
|- | |||
| height="18" align="LEFT" | Segment 3 Bit 2 | |||
| align="LEFT" | BIT | |||
| align="LEFT" | Analog Bit | |||
| align="LEFT" | A6 B2 | |||
|- | |||
| height="18" align="LEFT" | Segment 3 Bit 3 | |||
| align="LEFT" | NUMBER | |||
| align="LEFT" | Analog Bit | |||
| align="LEFT" | A6 B3 | |||
|- | |||
| height="18" align="LEFT" | Fire Btn | |||
| align="LEFT" | Button | |||
| align="LEFT" | Analog Bit | |||
| align="LEFT" | A6 B4 | |||
|- | |||
| height="18" align="LEFT" | Auto Aim Btn | |||
| align="LEFT" | Button | |||
| align="LEFT" | Analog Bit | |||
| align="LEFT" | A6 B5 | |||
|- | |||
| height="18" align="LEFT" | Autonomous Select Btn | |||
| align="LEFT" | Button | |||
| align="LEFT" | Analog Bit | |||
| align="LEFT" | A6 B6 | |||
|- | |||
| height="18" align="LEFT" | NONE | |||
| align="LEFT" | NONE | |||
| align="LEFT" | NONE | |||
| align="LEFT" | A6 B7 | |||
|} | |} | ||
=== Emulated Joystick Pinout Reference === | === Emulated Joystick Pinout Reference === |
Revision as of 17:35, 2 February 2012
Joystick Controls
Left Stick
X Axis | None |
Y Axis | Left Speed |
Throttle | |
Trigger | Turbo |
Button 2 | Slow |
Button 3 |
Wings Down |
Button 4 | WIngs Down (Broken) |
Button 5 | WIngs Up (Broken) |
Button 6 | |
Button 7 | |
Button 8 | |
Button 9 | |
Button 10 |
|
Button 11 |
Right Stick
X Axis | None |
Y Axis | Right Speed |
Throttle | |
Trigger | Turbo |
Button 2 | Slow |
Button 3 |
WIngs Down |
Button 4 | WIngs Down (Broken) |
Button 5 | Wings Up (Broken) |
Button 6 | |
Button 7 | |
Button 8 | |
Button 9 | |
Button 10 |
|
Button 11 |
Secondary Controls
Emulated Joystick
HID supports 6 axes and X digital buttons
Control | Hardware | Type | Mapped To |
Bridge Actuator Brkn | Toggle | Digital | D1 |
Turret Angle Brkn | Toggle | Digital | D2 |
Shooter Speed Brkn | Toggle | Digital | D3 |
Extra Brkn 1 | Toggle | Digital | D4 |
Extra Brkn 2 | Toggle | Digital | D5 |
Extra Brkn 3 | Toggle | Digital | D6 |
Conveyor Brkn | Toggle | Digital | D7 |
Extra Brkn 4 | Toggle | Digital | D8 |
Ball Collection Dir. Sw. | 3 Pos Toggle | Digital | D9,D10 |
Shoot Height Sw | 3 Pos Toggle | Digital | D11,D12 |
Turret Yaw | Pot | Analog | A1 (X) |
Shooter Power | Linear Pot | Analog | A2 (Y) |
Extra Pot 1 | Pot | Analog | A3 (Z) |
Extra Pot 2 | Pot | Analog | A4 (Rx) |
A5 (Ry) | |||
Segment 1 Bit 0 | A | Analog Bit | A5 B0 |
Segment 1 Bit 1 | FOUR | Analog Bit | A5 B1 |
Segment 1 Bit 2 | BIT | Analog Bit | A5 B2 |
Segment 1 Bit 3 | NUMBER | Analog Bit | A5 B3 |
Segment 2 Bit 0 | A | Analog Bit | A5 B4 |
Segment 2 Bit 1 | FOUR | Analog Bit | A5 B5 |
Segment 2 Bit 2 | BIT | Analog Bit | A5 B6 |
Segment 2 Bit 3 | NUMBER | Analog Bit | A5 B7 |
A6 (Rz) | |||
Segment 3 Bit 0 | A | Analog Bit | A6 B0 |
Segment 3 Bit 1 | FOUR | Analog Bit | A6 B1 |
Segment 3 Bit 2 | BIT | Analog Bit | A6 B2 |
Segment 3 Bit 3 | NUMBER | Analog Bit | A6 B3 |
Fire Btn | Button | Analog Bit | A6 B4 |
Auto Aim Btn | Button | Analog Bit | A6 B5 |
Autonomous Select Btn | Button | Analog Bit | A6 B6 |
NONE | NONE | NONE | A6 B7 |
Emulated Joystick Pinout Reference
Pin # | Type | Usage | Pin Name | ADC Name | Code ID | ADC Assigned Channel # | Joy Axis Output |
Pin 2 | N/A | Ground | N/A | N/A | N/A | N/A | N/A |
Pin 3 | N/A | 3.3V | N/A | N/A | N/A | N/A | N/A |
Pin 7 | Analog | Turret Yaw | PTE2 | ADC1_SE6a | ADC1_SOURCE_AD6A | 1 | X Axis |
Pin 22 | Analog | Shooter Power | PTE0 | ADC1_SE4a | ADC1_SOURCE_AD4A | 2 | Y Axis |
Pin 39 | Analog | Debug Pot | PTD5 | ADC0_SE6b | ADC0_SOURCE_AD6B | 1 | Z Axis |
Pin 64 | Analog | Debug Pot | PTD1 | ADC0_SE5b | ADC0_SOURCE_AD5B | 2 | Rx Axis |
http://penfieldrobotics.com/wiki/images/f/fd/Freescale_pinmap.PNG