Rotation Sensor
R2026bRead shaft position and velocity
Libraries:
Simulink Coder Support Package for VEX EDR V5 Robot Brain /
Sensors
Description
Add-On Required: This feature requires the Simulink Coder Support Package for VEX EDR V5 Robot Brain add-on.
The Rotation Sensor block reads shaft's position and velocity from the Rotation sensor that is connected to the VEX® V5 Brain. The VEX V5 Rotation sensor is an absolute encoder and it retains the shaft orientation across power cycle.
Ports
Output
Parameters
Programmatic Use: Add Block
To add the block programmatically, use the add_block function with one of these library block paths as the source.
"vexv5lib/Sensors/Rotation Sensor"
Example: add_block("vexv5lib/Sensors/Rotation Sensor","myModel/myBlock",MakeNameUnique="on")
Extended Capabilities
Version History
Introduced in R2021b

