Optical Shaft Encoder
Represent connected Optical Shaft Encoder and read relative position of motor shaft in ticks
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 /
Sensors
Description
The Optical Shaft Encoder block represents an Optical Shaft Encoder that is connected to the 3-wire ports of VEX EDR V5 Robot Brain, and reads the relative position of the motor shaft in ticks. The value increments for anti-clockwise rotation and decrements for clockwise rotation of the motor shaft.
The tick count also depends on the Reset mode that you selected.
Ports
Input
Output
Parameters
Extended Capabilities
Version History
Introduced in R2019b