Competition Switch
Read switch positions of VEXnet Competition Switch and provide logical values for Autonomous and Driver modes
Add-On Required: This feature requires the Simulink Coder Support Package for ARM Cortex-based VEX Microcontroller add-on.
Libraries:
Simulink Coder Support Package for ARM Cortex-based VEX
Microcontroller /
Gamepad
Description
The Competition Switch block reads the switch positions of the VEXnet Competition Switch and provides the corresponding logical values (1 or 0) for the Autonomous mode and Driver mode. This block can be used to switch between the logic required for Driver mode and Autonomous mode, based on the switch position.
Ports
Input
Output
Parameters
Version History
Introduced in R2016a