Read the switch positions of VEXnet Competition Switch or field controller
Simulink Coder Support Package for VEX EDR V5 Robot Brain
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.