|
|
| Line 2,001: |
Line 2,001: |
| | {| style="font-family:Verdana, Geneva, sans-serif; color:black; background-color:#FFFFFF; text-align:left; font-size:100%;" width="100%" cellpadding="5%" cellspacing="0" border="0" class="wikiText" | | {| style="font-family:Verdana, Geneva, sans-serif; color:black; background-color:#FFFFFF; text-align:left; font-size:100%;" width="100%" cellpadding="5%" cellspacing="0" border="0" class="wikiText" |
| | |- | | |- |
| − | |<span class="keywordB" id="dataType_tSensors_328">tSensors</span> | + | |<span class="keywordB" id="dataType_tSensors_2560">tSensors</span> |
| | {| style="font-family:Verdana, Geneva, sans-serif; color:black; background-color:#FFFFFF; text-align:center; font-size:100%; border-collapse: separate; border-spacing: 0; border-width: 1px; border-style: solid; border-color: #000;" cellpadding="5%" | | {| style="font-family:Verdana, Geneva, sans-serif; color:black; background-color:#FFFFFF; text-align:center; font-size:100%; border-collapse: separate; border-spacing: 0; border-width: 1px; border-style: solid; border-color: #000;" cellpadding="5%" |
| | ! style="text-align:left; border-style: solid; border-width: 0px 0px 1px 0px"|''Command'' | | ! style="text-align:left; border-style: solid; border-width: 0px 0px 1px 0px"|''Command'' |
| Line 2,110: |
Line 2,110: |
| | | style="text-align:right; border-style: solid; border-width: 0px 0px 0px 0px"| | | | style="text-align:right; border-style: solid; border-width: 0px 0px 0px 0px"| |
| | | style="text-align:right; border-style: solid; border-width: 0px 0px 0px 0px"| | | | style="text-align:right; border-style: solid; border-width: 0px 0px 0px 0px"| |
| | + | |- |
| | + | |} |
| | + | <br /> |
| | + | |
| | + | === TSerialPortMode === |
| | + | {| style="font-family:Verdana, Geneva, sans-serif; color:black; background-color:#FFFFFF; text-align:left; font-size:100%;" width="100%" cellpadding="5%" cellspacing="0" border="0" class="wikiText" |
| | + | |- |
| | + | |<span class="keywordB" id="dataType_TSerialPortMode">tSensors</span> |
| | + | {| style="font-family:Verdana, Geneva, sans-serif; color:black; background-color:#FFFFFF; text-align:center; font-size:100%; border-collapse: separate; border-spacing: 0; border-width: 1px; border-style: solid; border-color: #000;" cellpadding="5%" |
| | + | ! style="text-align:left; border-style: solid; border-width: 0px 0px 1px 0px"|''Command'' |
| | + | ! style="text-align:left; border-style: solid; border-width: 0px 0px 1px 0px"|Comments |
| | + | ! min-width="50px" style="text-align:right; border-style: solid; border-width: 0px 0px 1px 0px"|{{tag-arduino328}} |
| | + | ! min-width="50px" style="text-align:right; border-style: solid; border-width: 0px 0px 1px 0px"|{{tag-arduinoMega}} |
| | + | ! min-width="50px" style="text-align:right; border-style: solid; border-width: 0px 0px 1px 0px"|{{tag-vex2}} |
| | + | ! min-width="50px" style="text-align:right; border-style: solid; border-width: 0px 0px 1px 0px"|{{tag-nxt}} |
| | + | ! min-width="50px" style="text-align:right; border-style: solid; border-width: 0px 0px 1px 0px"|{{tag-vex}} |
| | + | ! min-width="50px" style="text-align:right; border-style: solid; border-width: 0px 0px 1px 0px"|{{tag-tetrix}} |
| | + | |- |
| | + | | style="text-align:left; border-style: solid; border-width: 1px 0px 1px 0px"|<span class="codeStringsNums">uartSystemCommPort</span> |
| | + | | style="text-align:left; border-style: solid; border-width: 1px 0px 1px 0px"|= 1, // Standard ROBOTC IDE System Messaging Port |
| | + | | style="text-align:right; border-style: solid; border-width: 1px 0px 1px 0px"|{{tag-arduino328}} |
| | + | | style="text-align:right; border-style: solid; border-width: 1px 0px 1px 0px"|{{tag-arduinoMega}} |
| | + | | style="text-align:right; border-style: solid; border-width: 1px 0px 1px 0px"| |
| | + | | style="text-align:right; border-style: solid; border-width: 1px 0px 1px 0px"| |
| | + | | style="text-align:right; border-style: solid; border-width: 1px 0px 1px 0px"| |
| | + | | style="text-align:right; border-style: solid; border-width: 1px 0px 1px 0px"| |
| | + | |- |
| | + | | style="text-align:left; border-style: solid; border-width: 1px 0px 1px 0px"|<span class="codeStringsNums">uartUserControl</span> |
| | + | | style="text-align:left; border-style: solid; border-width: 1px 0px 1px 0px"|= 2, // Fully user controlled |
| | + | | style="text-align:right; border-style: solid; border-width: 1px 0px 1px 0px"|{{tag-arduino328}} |
| | + | | style="text-align:right; border-style: solid; border-width: 1px 0px 1px 0px"|{{tag-arduinoMega}} |
| | + | | style="text-align:right; border-style: solid; border-width: 1px 0px 1px 0px"| |
| | + | | style="text-align:right; border-style: solid; border-width: 1px 0px 1px 0px"| |
| | + | | style="text-align:right; border-style: solid; border-width: 1px 0px 1px 0px"| |
| | + | | style="text-align:right; border-style: solid; border-width: 1px 0px 1px 0px"| |
| | + | |- |
| | + | | style="text-align:left; border-style: solid; border-width: 0px 0px 1px 0px"|<span class="codeStringsNums">uartVEXLCD</span> |
| | + | | style="text-align:left; border-style: solid; border-width: 0px 0px 1px 0px"|= 3, // VEX 2x15 LCD. Manages LCD updates in background |
| | + | | style="text-align:right; border-style: solid; border-width: 0px 0px 1px 0px"|{{tag-arduino328}} |
| | + | | style="text-align:right; border-style: solid; border-width: 0px 0px 1px 0px"|{{tag-arduinoMega}} |
| | + | | style="text-align:right; border-style: solid; border-width: 0px 0px 1px 0px"| |
| | + | | style="text-align:right; border-style: solid; border-width: 0px 0px 1px 0px"| |
| | + | | style="text-align:right; border-style: solid; border-width: 0px 0px 1px 0px"| |
| | + | | style="text-align:right; border-style: solid; border-width: 0px 0px 1px 0px"| |
| | + | |- |
| | + | | style="text-align:left; border-style: solid; border-width: 0px 0px 1px 0px"|<span class="codeStringsNums">uartXBeeZigBee</span> |
| | + | | style="text-align:left; border-style: solid; border-width: 0px 0px 1px 0px"|= 4, // UART used for XBee ZigBee networking |
| | + | | style="text-align:right; border-style: solid; border-width: 0px 0px 1px 0px"|{{tag-arduino328}} |
| | + | | style="text-align:right; border-style: solid; border-width: 0px 0px 1px 0px"|{{tag-arduinoMega}} |
| | + | | style="text-align:right; border-style: solid; border-width: 0px 0px 1px 0px"| |
| | + | | style="text-align:right; border-style: solid; border-width: 0px 0px 1px 0px"| |
| | + | | style="text-align:right; border-style: solid; border-width: 0px 0px 1px 0px"| |
| | + | | style="text-align:right; border-style: solid; border-width: 0px 0px 1px 0px"| |
| | + | |- |
| | + | | style="text-align:left; border-style: solid; border-width: 0px 0px 1px 0px"|<span class="codeStringsNums">uartXBeeWiFi</span> |
| | + | | style="text-align:left; border-style: solid; border-width: 0px 0px 1px 0px"|= 5, // UART used for XBee WiFi networking |
| | + | | style="text-align:right; border-style: solid; border-width: 0px 0px 1px 0px"|{{tag-arduino328}} |
| | + | | style="text-align:right; border-style: solid; border-width: 0px 0px 1px 0px"|{{tag-arduinoMega}} |
| | + | | style="text-align:right; border-style: solid; border-width: 0px 0px 1px 0px"| |
| | + | | style="text-align:right; border-style: solid; border-width: 0px 0px 1px 0px"| |
| | + | | style="text-align:right; border-style: solid; border-width: 0px 0px 1px 0px"| |
| | + | | style="text-align:right; border-style: solid; border-width: 0px 0px 1px 0px"| |
| | + | |- |
| | + | | style="text-align:left; border-style: solid; border-width: 0px 0px 1px 0px"|<span class="codeStringsNums">uartCMUCAM</span> |
| | + | | style="text-align:left; border-style: solid; border-width: 0px 0px 1px 0px"|= 6, // Legacy CMU Cam (Rev.1) support |
| | + | | style="text-align:right; border-style: solid; border-width: 0px 0px 1px 0px"|{{tag-arduino328}} |
| | + | | style="text-align:right; border-style: solid; border-width: 0px 0px 1px 0px"|{{tag-arduinoMega}} |
| | + | | style="text-align:right; border-style: solid; border-width: 0px 0px 1px 0px"| |
| | + | | style="text-align:right; border-style: solid; border-width: 0px 0px 1px 0px"| |
| | + | | style="text-align:right; border-style: solid; border-width: 0px 0px 1px 0px"| |
| | + | | style="text-align:right; border-style: solid; border-width: 0px 0px 1px 0px"| |
| | + | |- |
| | + | | style="text-align:left; border-style: solid; border-width: 0px 0px 1px 0px"|<span class="codeStringsNums">uartSerialGPS</span> |
| | + | | style="text-align:left; border-style: solid; border-width: 0px 0px 1px 0px"|= 7, // Connected to a serial GPS |
| | + | | style="text-align:right; border-style: solid; border-width: 0px 0px 1px 0px"|{{tag-arduino328}} |
| | + | | style="text-align:right; border-style: solid; border-width: 0px 0px 1px 0px"|{{tag-arduinoMega}} |
| | + | | style="text-align:right; border-style: solid; border-width: 0px 0px 1px 0px"| |
| | + | | style="text-align:right; border-style: solid; border-width: 0px 0px 1px 0px"| |
| | + | | style="text-align:right; border-style: solid; border-width: 0px 0px 1px 0px"| |
| | + | | style="text-align:right; border-style: solid; border-width: 0px 0px 1px 0px"| |
| | |- | | |- |
| | |} | | |} |
| data type
|
Comments
|
[arduino 328]
|
[arduino Mega]
|
[cortex]
|
[nxt]
|
[pic]
|
[tetrix]
|
| bool
|
A Boolean value; either true or false.
Note that false is equivalent to zero (0), and true is equivalent to any non-zero number (both positive and negative).
|
[arduino 328]
|
[arduino Mega]
|
[cortex]
|
[nxt]
|
[pic]
|
[tetrix]
|
| byte
|
A whole number ranging from -128 to 127.
|
[arduino 328]
|
[arduino Mega]
|
[cortex]
|
[nxt]
|
[pic]
|
[tetrix]
|
| char
|
A whole number ranging from -128 to 127. Can be interpreted as a character value.
For example, 42 = 'B' and vice versa.
|
[arduino 328]
|
[arduino Mega]
|
[cortex]
|
[nxt]
|
[pic]
|
[tetrix]
|
| float
|
A floating-point number (decimal) with the following length and accuracy restrictions:
|
|
|
| 0.####
|
0.0000 to +2,048.0000
|
| 0.###
|
0.000 to +32,768.000
|
| 0.##
|
0.00 to +262,144.00
|
| 0.#
|
0.0 to +2,097,200.0
|
|
|
[arduino Mega]
|
[cortex]
|
[nxt]
|
|
[tetrix]
|
| long
|
A whole number ranging from -2,147,483,648 to 2,147,483,647.
|
|
[arduino Mega]
|
[cortex]
|
[nxt]
|
|
[tetrix]
|
| int
|
A whole number ranging from -32,768 to 32,767.
|
[arduino 328]
|
[arduino Mega]
|
[cortex]
|
[nxt]
|
[pic]
|
[tetrix]
|
| short
|
A whole number ranging from -32,768 to 32,767.
|
[arduino 328]
|
[arduino Mega]
|
[cortex]
|
[nxt]
|
[pic]
|
[tetrix]
|
| string
|
A sequence of characters.
|
|
[arduino Mega]
|
[cortex]
|
[nxt]
|
|
[tetrix]
|
| word
|
A whole number ranging from -32,768 to 32,767.
|
[arduino 328]
|
[arduino Mega]
|
[cortex]
|
[nxt]
|
[pic]
|
[tetrix]
|
| ubyte
|
An unsigned byte (0 to 255).
|
[arduino 328]
|
[arduino Mega]
|
[cortex]
|
[nxt]
|
[pic]
|
[tetrix]
|
| void
|
This means that the function doesn't return anything.
|
[arduino 328]
|
[arduino Mega]
|
[cortex]
|
[nxt]
|
[pic]
|
[tetrix]
|
|
tSensors
| Command
|
Comments
|
[arduino 328]
|
[arduino Mega]
|
[cortex]
|
[nxt]
|
[pic]
|
[tetrix]
|
| anlg0 through anlg5
|
Analog IN ports
|
[arduino 328]
|
|
|
|
|
|
| dgtl0
|
RX port
|
[arduino 328]
|
|
|
|
|
|
| dgtl1
|
TX port
|
[arduino 328]
|
|
|
|
|
|
| dgtl2
|
Digital port
|
[arduino 328]
|
|
|
|
|
|
| dgtl3
|
PWM port
|
[arduino 328]
|
|
|
|
|
|
| dgtl4
|
Digital port
|
[arduino 328]
|
|
|
|
|
|
| dgtl5 through dgtl11
|
PWM port
|
[arduino 328]
|
|
|
|
|
|
| dgtl12, dgtl13
|
Digital port
|
[arduino 328]
|
|
|
|
|
|
tSensors (Arduino Mega 2560)
tSensors
| Command
|
Comments
|
[arduino 328]
|
[arduino Mega]
|
[cortex]
|
[nxt]
|
[pic]
|
[tetrix]
|
| anlg0 through anlg15
|
Analog IN ports
|
|
[arduino Mega]
|
|
|
|
|
| dgtl0, dgtl1
|
Communication Ports (RX, TX)
|
|
[arduino Mega]
|
|
|
|
|
| dgtl2 through dgtl13
|
PWM ports
|
|
[arduino Mega]
|
|
|
|
|
| dgtl14 through dgtl19
|
Communication Ports (RX, TX)
|
|
[arduino Mega]
|
|
|
|
|
| dgtl20
|
SDA (serial data)
|
|
[arduino Mega]
|
|
|
|
|
| dgtl21
|
SCL (serial clock)
|
|
[arduino Mega]
|
|
|
|
|
| dgtl22 through dgtl49
|
Digital ports
|
|
[arduino Mega]
|
|
|
|
|
| dgtl50
|
MISO (master input, slave output)
|
|
[arduino Mega]
|
|
|
|
|
| dgtl51
|
MOSI (master output, slave input)
|
|
[arduino Mega]
|
|
|
|
|
| dgtl52
|
SCK (serial clock)
|
|
[arduino Mega]
|
|
|
|
|
| dgtl53
|
SS (slave select)
|
|
[arduino Mega]
|
|
|
|
|
TSerialPortMode
tSensors
| Command
|
Comments
|
[arduino 328]
|
[arduino Mega]
|
[cortex]
|
[nxt]
|
[pic]
|
[tetrix]
|
| uartSystemCommPort
|
= 1, // Standard ROBOTC IDE System Messaging Port
|
[arduino 328]
|
[arduino Mega]
|
|
|
|
|
| uartUserControl
|
= 2, // Fully user controlled
|
[arduino 328]
|
[arduino Mega]
|
|
|
|
|
| uartVEXLCD
|
= 3, // VEX 2x15 LCD. Manages LCD updates in background
|
[arduino 328]
|
[arduino Mega]
|
|
|
|
|
| uartXBeeZigBee
|
= 4, // UART used for XBee ZigBee networking
|
[arduino 328]
|
[arduino Mega]
|
|
|
|
|
| uartXBeeWiFi
|
= 5, // UART used for XBee WiFi networking
|
[arduino 328]
|
[arduino Mega]
|
|
|
|
|
| uartCMUCAM
|
= 6, // Legacy CMU Cam (Rev.1) support
|
[arduino 328]
|
[arduino Mega]
|
|
|
|
|
| uartSerialGPS
|
= 7, // Connected to a serial GPS
|
[arduino 328]
|
[arduino Mega]
|
|
|
|
|
TSounds
TSounds
| Command
|
Comments
|
[arduino 328]
|
[arduino Mega]
|
[cortex]
|
[nxt]
|
[pic]
|
[tetrix]
|
| soundBlip
|
= 0
|
[arduino 328]
|
[arduino Mega]
|
[cortex]
|
[nxt]
|
[pic]
|
[tetrix]
|
| soundBeepBeep
|
= 1
|
[arduino 328]
|
[arduino Mega]
|
[cortex]
|
[nxt]
|
[pic]
|
[tetrix]
|
| soundDownwardTones
|
= 2
|
[arduino 328]
|
[arduino Mega]
|
[cortex]
|
[nxt]
|
[pic]
|
[tetrix]
|
| soundUpwardTones
|
= 3
|
[arduino 328]
|
[arduino Mega]
|
[cortex]
|
[nxt]
|
[pic]
|
[tetrix]
|
| soundLowBuzz
|
= 4
|
[arduino 328]
|
[arduino Mega]
|
[cortex]
|
[nxt]
|
[pic]
|
[tetrix]
|
| soundFastUpwardTones
|
= 5
|
[arduino 328]
|
[arduino Mega]
|
[cortex]
|
[nxt]
|
[pic]
|
[tetrix]
|
| soundShortBlip
|
= 6
|
[arduino 328]
|
[arduino Mega]
|
[cortex]
|
[nxt]
|
[pic]
|
[tetrix]
|
| soundException
|
= 7
|
[arduino 328]
|
[arduino Mega]
|
[cortex]
|
[nxt]
|
[pic]
|
[tetrix]
|
| soundLowBuzzShort
|
= 8
|
[arduino 328]
|
[arduino Mega]
|
[cortex]
|
[nxt]
|
[pic]
|
[tetrix]
|
|
TSynchedMotors
TSynchedMotors
| Command
|
Comments
|
[arduino 328]
|
[arduino Mega]
|
[cortex]
|
[nxt]
|
[pic]
|
[tetrix]
|
| synchNone
|
= 0
|
|
|
|
[nxt]
|
|
[tetrix]
|
| synchAB
|
= 1
|
|
|
|
[nxt]
|
|
[tetrix]
|
| synchAC
|
= 2
|
|
|
|
[nxt]
|
|
[tetrix]
|
| synchBA
|
= 3
|
|
|
|
[nxt]
|
|
[tetrix]
|
| synchBC
|
= 4
|
|
|
|
[nxt]
|
|
[tetrix]
|
| synchCA
|
= 5
|
|
|
|
[nxt]
|
|
[tetrix]
|
| synchCB
|
= 6
|
|
|
|
[nxt]
|
|
[tetrix]
|
|
TTimers
TTimers
| Command
|
Comments
|
[arduino 328]
|
[arduino Mega]
|
[cortex]
|
[nxt]
|
[pic]
|
[tetrix]
|
| T1
|
= 0
|
[arduino 328]
|
[arduino Mega]
|
[cortex]
|
[nxt]
|
[pic]
|
[tetrix]
|
| T2
|
= 1
|
[arduino 328]
|
[arduino Mega]
|
[cortex]
|
[nxt]
|
[pic]
|
[tetrix]
|
| T3
|
= 2
|
[arduino 328]
|
[arduino Mega]
|
[cortex]
|
[nxt]
|
[pic]
|
[tetrix]
|
| T4
|
= 3
|
[arduino 328]
|
[arduino Mega]
|
[cortex]
|
[nxt]
|
[pic]
|
[tetrix]
|
|
TUARTs
TUARTs
| Command
|
Comments
|
[arduino 328]
|
[arduino Mega]
|
[cortex]
|
[nxt]
|
[pic]
|
[tetrix]
|
| uartOne
|
= 0
|
|
|
[cortex]
|
|
[pic]
|
|
| uartTwo
|
= 1
|
|
|
[cortex]
|
|
[pic]
|
|
| uartThree
|
= 2
|
|
|
[cortex]
|
|
[pic]
|
|
| UART0
|
= 0
|
[arduino 328]
|
[arduino Mega]
|
|
|
|
|
| UART1
|
= 1
|
[arduino 328]
|
[arduino Mega]
|
|
|
|
|
| UART2
|
= 2
|
[arduino 328]
|
[arduino Mega]
|
|
|
|
|
| UART3
|
= 3
|
[arduino 328]
|
[arduino Mega]
|
|
|
|
|
|
TVexJoysticks
TVexJoysticks
| Command
|
Comments
|
[arduino 328]
|
[arduino Mega]
|
[cortex]
|
[nxt]
|
[pic]
|
[tetrix]
|
| Ch1
|
= 0
|
|
|
[cortex]
|
|
[pic]
|
|
| Ch2
|
= 1
|
|
|
[cortex]
|
|
[pic]
|
|
| Ch3
|
= 2
|
|
|
[cortex]
|
|
[pic]
|
|
| Ch4
|
= 3
|
|
|
[cortex]
|
|
[pic]
|
|
| Ch5
|
= 4
|
|
|
[cortex]
|
|
[pic]
|
|
| Ch6
|
= 5
|
|
|
[cortex]
|
|
[pic]
|
|
| Btn5U
|
= Btn5D + 1
|
|
|
[cortex]
|
|
[pic]
|
|
| Btn5D
|
= 14
|
|
|
[cortex]
|
|
[pic]
|
|
| Btn6U
|
= Btn5D + 3
|
|
|
[cortex]
|
|
[pic]
|
|
| Btn6D
|
= Btn5D + 2
|
|
|
[cortex]
|
|
[pic]
|
|
| Btn7U
|
= Btn5D + 10
|
|
|
[cortex]
|
|
[pic]
|
|
| Btn7D
|
= Btn5D + 8
|
|
|
[cortex]
|
|
[pic]
|
|
| Btn7L
|
= Btn5D + 9
|
|
|
[cortex]
|
|
[pic]
|
|
| Btn7R
|
= Btn5D + 11
|
|
|
[cortex]
|
|
[pic]
|
|
| Btn8U
|
= Btn5D + 6
|
|
|
[cortex]
|
|
[pic]
|
|
| Btn8D
|
= Btn5D + 4
|
|
|
[cortex]
|
|
[pic]
|
|
| Btn8L
|
= Btn5D + 5
|
|
|
[cortex]
|
|
[pic]
|
|
| Btn8R
|
= Btn5D + 7
|
|
|
[cortex]
|
|
[pic]
|
|
| AccelX
|
= 38
|
|
|
[cortex]
|
|
[pic]
|
|
| AccelY
|
= AccelX + 1
|
|
|
[cortex]
|
|
[pic]
|
|
| AccelZ
|
= AccelX + 2
|
|
|
[cortex]
|
|
[pic]
|
|
| Ch1Xmtr2
|
= 6
|
|
|
[cortex]
|
|
[pic]
|
|
| Ch2Xmtr2
|
= 7
|
|
|
[cortex]
|
|
[pic]
|
|
| Ch3Xmtr2
|
= 8
|
|
|
[cortex]
|
|
[pic]
|
|
| Ch4Xmtr2
|
= 9
|
|
|
[cortex]
|
|
[pic]
|
|
| Ch5Xmtr2
|
= 10
|
|
|
[cortex]
|
|
[pic]
|
|
| Ch6Xmtr2
|
= 11
|
|
|
[cortex]
|
|
[pic]
|
|
| Btn5UXmtr2
|
= Btn5DXmtr2 + 1
|
|
|
[cortex]
|
|
[pic]
|
|
| Btn5DXmtr2
|
= 26
|
|
|
[cortex]
|
|
[pic]
|
|
| Btn6UXmtr2
|
= Btn5DXmtr2 + 3
|
|
|
[cortex]
|
|
[pic]
|
|
| Btn6DXmtr2
|
= Btn5DXmtr2 + 2
|
|
|
[cortex]
|
|
[pic]
|
|
| Btn7UXmtr2
|
= Btn5DXmtr2 + 10
|
|
|
[cortex]
|
|
[pic]
|
|
| Btn7DXmtr2
|
= Btn5DXmtr2 + 8
|
|
|
[cortex]
|
|
[pic]
|
|
| Btn7LXmtr2
|
= Btn5DXmtr2 + 9
|
|
|
[cortex]
|
|
[pic]
|
|
| Btn7RXmtr2
|
= Btn5DXmtr2 + 11
|
|
|
[cortex]
|
|
[pic]
|
|
| Btn8UXmtr2
|
= Btn5DXmtr2 + 6
|
|
|
[cortex]
|
|
[pic]
|
|
| Btn8DXmtr2
|
= Btn5DXmtr2 + 4
|
|
|
[cortex]
|
|
[pic]
|
|
| Btn8LXmtr2
|
= Btn5DXmtr2 + 5
|
|
|
[cortex]
|
|
[pic]
|
|
| Btn8RXmtr2
|
= Btn5DXmtr2 + 7
|
|
|
[cortex]
|
|
[pic]
|
|
| AccelXXmtr2
|
= 41
|
|
|
[cortex]
|
|
[pic]
|
|
| AccelYXmtr2
|
= AccelXXmtr2 + 1
|
|
|
[cortex]
|
|
[pic]
|
|
| AccelZXmtr2
|
= AccelXXmtr2 + 2
|
|
|
[cortex]
|
|
[pic]
|
|
|
TVexReceiverState
TVexReceiverState
| Command
|
Comments
|
[arduino 328]
|
[arduino Mega]
|
[cortex]
|
[nxt]
|
[pic]
|
[tetrix]
|
| vrNoXmiters
|
= 0 No transmitters connected
|
|
|
[cortex]
|
|
|
|
| vrXmit1
|
= 0x01 1: Transmitter 1 connected
|
|
|
[cortex]
|
|
|
|
| vrXmit2
|
= 0x02 1: Transmitter 2 connected
|
|
|
[cortex]
|
|
|
|
| vrBit2
|
= 0x04 unused
|
|
|
[cortex]
|
|
|
|
| vrCompetitionSwitch
|
= 0x08 0: No Comp Switch 1: Competition Switch attached
|
|
|
[cortex]
|
|
|
|
| vrResetSlave
|
= 0x10 unused
|
|
|
[cortex]
|
|
|
|
| vrGameController
|
= 0x20 0: Legacy75MHz 1: Game Controller
|
|
|
[cortex]
|
|
|
|
| vrAutonomousMode
|
= 0x40 0: Driver Control 1: Autonomous Mode
|
|
|
[cortex]
|
|
|
|
| vrDisabled
|
= 0x80 0: Enabled 1: Disabled
|
|
|
[cortex]
|
|
|
|
|
TSounds
TSounds
| Command
|
Comments
|
[arduino 328]
|
[arduino Mega]
|
[cortex]
|
[nxt]
|
[pic]
|
[tetrix]
|
| soundBlip
|
= 0
|
[arduino 328]
|
[arduino Mega]
|
[cortex]
|
[nxt]
|
[pic]
|
[tetrix]
|
| soundBeepBeep
|
= 1
|
[arduino 328]
|
[arduino Mega]
|
[cortex]
|
[nxt]
|
[pic]
|
[tetrix]
|
| soundDownwardTones
|
= 2
|
[arduino 328]
|
[arduino Mega]
|
[cortex]
|
[nxt]
|
[pic]
|
[tetrix]
|
| soundUpwardTones
|
= 3
|
[arduino 328]
|
[arduino Mega]
|
[cortex]
|
[nxt]
|
[pic]
|
[tetrix]
|
| soundLowBuzz
|
= 4
|
[arduino 328]
|
[arduino Mega]
|
[cortex]
|
[nxt]
|
[pic]
|
[tetrix]
|
| soundFastUpwardTones
|
= 5
|
[arduino 328]
|
[arduino Mega]
|
[cortex]
|
[nxt]
|
[pic]
|
[tetrix]
|
| soundShortBlip
|
= 6
|
[arduino 328]
|
[arduino Mega]
|
[cortex]
|
[nxt]
|
[pic]
|
[tetrix]
|
| soundException
|
= 7
|
[arduino 328]
|
[arduino Mega]
|
[cortex]
|
[nxt]
|
[pic]
|
[tetrix]
|
| soundLowBuzzShort
|
= 8
|
[arduino 328]
|
[arduino Mega]
|
[cortex]
|
[nxt]
|
[pic]
|
[tetrix]
|
|
TSynchedMotors
TSynchedMotors
| Command
|
Comments
|
[arduino 328]
|
[arduino Mega]
|
[cortex]
|
[nxt]
|
[pic]
|
[tetrix]
|
| synchNone
|
= 0
|
|
|
|
[nxt]
|
|
[tetrix]
|
| synchAB
|
= 1
|
|
|
|
[nxt]
|
|
[tetrix]
|
| synchAC
|
= 2
|
|
|
|
[nxt]
|
|
[tetrix]
|
| synchBA
|
= 3
|
|
|
|
[nxt]
|
|
[tetrix]
|
| synchBC
|
= 4
|
|
|
|
[nxt]
|
|
[tetrix]
|
| synchCA
|
= 5
|
|
|
|
[nxt]
|
|
[tetrix]
|
| synchCB
|
= 6
|
|
|
|
[nxt]
|
|
[tetrix]
|
|
TTimers
TTimers
| Command
|
Comments
|
[arduino 328]
|
[arduino Mega]
|
[cortex]
|
[nxt]
|
[pic]
|
[tetrix]
|
| T1
|
= 0
|
[arduino 328]
|
[arduino Mega]
|
[cortex]
|
[nxt]
|
[pic]
|
[tetrix]
|
| T2
|
= 1
|
[arduino 328]
|
[arduino Mega]
|
[cortex]
|
[nxt]
|
[pic]
|
[tetrix]
|
| T3
|
= 2
|
[arduino 328]
|
[arduino Mega]
|
[cortex]
|
[nxt]
|
[pic]
|
[tetrix]
|
| T4
|
= 3
|
[arduino 328]
|
[arduino Mega]
|
[cortex]
|
[nxt]
|
[pic]
|
[tetrix]
|
|
TUARTs
TUARTs
| Command
|
Comments
|
[arduino 328]
|
[arduino Mega]
|
[cortex]
|
[nxt]
|
[pic]
|
[tetrix]
|
| uartOne
|
= 0
|
|
|
[cortex]
|
|
[pic]
|
|
| uartTwo
|
= 1
|
|
|
[cortex]
|
|
[pic]
|
|
| uartThree
|
= 2
|
|
|
[cortex]
|
|
[pic]
|
|
| UART0
|
= 0
|
[arduino 328]
|
[arduino Mega]
|
|
|
|
|
| UART1
|
= 1
|
[arduino 328]
|
[arduino Mega]
|
|
|
|
|
| UART2
|
= 2
|
[arduino 328]
|
[arduino Mega]
|
|
|
|
|
| UART3
|
= 3
|
[arduino 328]
|
[arduino Mega]
|
|
|
|
|
|
TVexJoysticks
TVexJoysticks
| Command
|
Comments
|
[arduino 328]
|
[arduino Mega]
|
[cortex]
|
[nxt]
|
[pic]
|
[tetrix]
|
| Ch1
|
= 0
|
|
|
[cortex]
|
|
[pic]
|
|
| Ch2
|
= 1
|
|
|
[cortex]
|
|
[pic]
|
|
| Ch3
|
= 2
|
|
|
[cortex]
|
|
[pic]
|
|
| Ch4
|
= 3
|
|
|
[cortex]
|
|
[pic]
|
|
| Ch5
|
= 4
|
|
|
[cortex]
|
|
[pic]
|
|
| Ch6
|
= 5
|
|
|
[cortex]
|
|
[pic]
|
|
| Btn5U
|
= Btn5D + 1
|
|
|
[cortex]
|
|
[pic]
|
|
| Btn5D
|
= 14
|
|
|
[cortex]
|
|
[pic]
|
|
| Btn6U
|
= Btn5D + 3
|
|
|
[cortex]
|
|
[pic]
|
|
| Btn6D
|
= Btn5D + 2
|
|
|
[cortex]
|
|
[pic]
|
|
| Btn7U
|
= Btn5D + 10
|
|
|
[cortex]
|
|
[pic]
|
|
| Btn7D
|
= Btn5D + 8
|
|
|
[cortex]
|
|
[pic]
|
|
| Btn7L
|
= Btn5D + 9
|
|
|
[cortex]
|
|
[pic]
|
|
| Btn7R
|
= Btn5D + 11
|
|
|
[cortex]
|
|
[pic]
|
|
| Btn8U
|
= Btn5D + 6
|
|
|
[cortex]
|
|
[pic]
|
|
| Btn8D
|
= Btn5D + 4
|
|
|
[cortex]
|
|
[pic]
|
|
| Btn8L
|
= Btn5D + 5
|
|
|
[cortex]
|
|
[pic]
|
|
| Btn8R
|
= Btn5D + 7
|
|
|
[cortex]
|
|
[pic]
|
|
| AccelX
|
= 38
|
|
|
[cortex]
|
|
[pic]
|
|
| AccelY
|
= AccelX + 1
|
|
|
[cortex]
|
|
[pic]
|
|
| AccelZ
|
= AccelX + 2
|
|
|
[cortex]
|
|
[pic]
|
|
| Ch1Xmtr2
|
= 6
|
|
|
[cortex]
|
|
[pic]
|
|
| Ch2Xmtr2
|
= 7
|
|
|
[cortex]
|
|
[pic]
|
|
| Ch3Xmtr2
|
= 8
|
|
|
[cortex]
|
|
[pic]
|
|
| Ch4Xmtr2
|
= 9
|
|
|
[cortex]
|
|
[pic]
|
|
| Ch5Xmtr2
|
= 10
|
|
|
[cortex]
|
|
[pic]
|
|
| Ch6Xmtr2
|
= 11
|
|
|
[cortex]
|
|
[pic]
|
|
| Btn5UXmtr2
|
= Btn5DXmtr2 + 1
|
|
|
[cortex]
|
|
[pic]
|
|
| Btn5DXmtr2
|
= 26
|
|
|
[cortex]
|
|
[pic]
|
|
| Btn6UXmtr2
|
= Btn5DXmtr2 + 3
|
|
|
[cortex]
|
|
[pic]
|
|
| Btn6DXmtr2
|
= Btn5DXmtr2 + 2
|
|
|
[cortex]
|
|
[pic]
|
|
| Btn7UXmtr2
|
= Btn5DXmtr2 + 10
|
|
|
[cortex]
|
|
[pic]
|
|
| Btn7DXmtr2
|
= Btn5DXmtr2 + 8
|
|
|
[cortex]
|
|
[pic]
|
|
| Btn7LXmtr2
|
= Btn5DXmtr2 + 9
|
|
|
[cortex]
|
|
[pic]
|
|
| Btn7RXmtr2
|
= Btn5DXmtr2 + 11
|
|
|
[cortex]
|
|
[pic]
|
|
| Btn8UXmtr2
|
= Btn5DXmtr2 + 6
|
|
|
[cortex]
|
|
[pic]
|
|
| Btn8DXmtr2
|
= Btn5DXmtr2 + 4
|
|
|
[cortex]
|
|
[pic]
|
|
| Btn8LXmtr2
|
= Btn5DXmtr2 + 5
|
|
|
[cortex]
|
|
[pic]
|
|
| Btn8RXmtr2
|
= Btn5DXmtr2 + 7
|
|
|
[cortex]
|
|
[pic]
|
|
| AccelXXmtr2
|
= 41
|
|
|
[cortex]
|
|
[pic]
|
|
| AccelYXmtr2
|
= AccelXXmtr2 + 1
|
|
|
[cortex]
|
|
[pic]
|
|
| AccelZXmtr2
|
= AccelXXmtr2 + 2
|
|
|
[cortex]
|
|
[pic]
|
|
|
TVexReceiverState
TVexReceiverState
| Command
|
Comments
|
[arduino 328]
|
[arduino Mega]
|
[cortex]
|
[nxt]
|
[pic]
|
[tetrix]
|
| vrNoXmiters
|
= 0 No transmitters connected
|
|
|
[cortex]
|
|
|
|
| vrXmit1
|
= 0x01 1: Transmitter 1 connected
|
|
|
[cortex]
|
|
|
|
| vrXmit2
|
= 0x02 1: Transmitter 2 connected
|
|
|
[cortex]
|
|
|
|
| vrBit2
|
= 0x04 unused
|
|
|
[cortex]
|
|
|
|
| vrCompetitionSwitch
|
= 0x08 0: No Comp Switch 1: Competition Switch attached
|
|
|
[cortex]
|
|
|
|
| vrResetSlave
|
= 0x10 unused
|
|
|
[cortex]
|
|
|
|
| vrGameController
|
= 0x20 0: Legacy75MHz 1: Game Controller
|
|
|
[cortex]
|
|
|
|
| vrAutonomousMode
|
= 0x40 0: Driver Control 1: Autonomous Mode
|
|
|
[cortex]
|
|
|
|
| vrDisabled
|
= 0x80 0: Enabled 1: Disabled
|
|
|
[cortex]
|
|
|
|
|
|
|
|