ARDUINO Functions Remote Control - IFI
From ROBOTC API Guide
Functions and Variables → Remote Control - IFI
|
|
| |||||||
bVEXNETActive
| const bool bVEXNETActive | |
| (bool) Boolean flag indicating whether VEXNET WiFi or legacy 75 MHZ RF wireless transmission is used. | |
|
nIfiSPIMsgCounts
| const word nIfiSPIMsgCounts | |
| (word) Variable counts the number of SPI messages received by the user CPU from the master CPU. | |
|
nVexRCReceiveState
| const TVexReceiverState nVexRCReceiveState | |
| (TVexReceiverState) Integer value representing the current state of the transmitters connected to the VEX. This variable will return a different value depending upon the current configuration of remote transmitters connected to the VEX controller. | |
|
vexRT
| const word vexRT[TVexJoysticks joystickOrButton] | ||||||
| (word) Array that contains the values of the joysticks and buttons from an VEX RF Transmitter. Supports channels Ch1 through Ch6. Returns values between -127 and 127 (normalized for motor values in ROBOTC.) | ||||||
| ||||||
|
Controller 1
Ch1
| TVexJoysticks Ch1 | |
| (TVexJoysticks) X-Axis - Right Joystick | |
|
Ch2
| TVexJoysticks Ch2 | |
| (TVexJoysticks) Y-Axis - Right Joystick | |
|
Ch3
| TVexJoysticks Ch3 | |
| (TVexJoysticks) Y-Axis - Left Joystick | |
|
Ch4
| TVexJoysticks Ch4 | |
| (TVexJoysticks) X-Axis - Left Joystick | |
|
Ch5
| TVexJoysticks Ch5 | |
| (TVexJoysticks) Left-hand, rear buttons | |
|
Ch6
| TVexJoysticks Ch6 | |
| (TVexJoysticks) Right-hand, rear buttons | |
|
Controller 2
Ch1Xmtr2
| TVexJoysticks Ch1Xmtr2 | |
| (TVexJoysticks) X-Axis - Right Joystick | |
|
Ch2Xmtr2
| TVexJoysticks Ch2Xmtr2 | |
| (TVexJoysticks) Y-Axis - Right Joystick | |
|
Ch3Xmtr2
| TVexJoysticks Ch3Xmtr2 | |
| (TVexJoysticks) Y-Axis - Left Joystick | |
|
Ch4Xmtr2
| TVexJoysticks Ch4Xmtr2 | |
| (TVexJoysticks) X-Axis - Left Joystick | |
|
Ch5Xmtr2
| TVexJoysticks Ch5Xmtr2 | |
| (TVexJoysticks) Left-hand, rear buttons | |
|
Ch6Xmtr2
| TVexJoysticks Ch6Xmtr2 | |
| (TVexJoysticks) Right-hand, rear buttons | |
|
