Main Content
Competition Switch
Read the switch positions of VEXnet Competition Switch or field controller
Add-On Required: This feature requires the Simulink Coder Support Package for VEX EDR V5 Robot Brain add-on.
Libraries:
Simulink Coder Support Package for VEX EDR V5 Robot Brain /
Gamepad
Description
The Competition Switch block is used to read the switch positions of the VEXnet Competition Switch, and provide the corresponding logical values (1 or 0) as outputs. This block can be used to enable the required logic for the Pre-Autonomous, Autonomous and Driver Controlled modes, based on the switch position.
Examples
Ports
Output
Parameters
Version History
Introduced in R2019a