V5 GPS Sensor
R2026bLibraries:
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 GPS Sensor block reads position and orientation from the VEX V5 GPS Sensor connected to the robot.
The block outputs pose as a 3-by-1 vector representing X, Y coordinates and θ heading. Additionally, it outputs an estimate of position error.
This block also allows you to visualize the sensor and robot configuration.
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/V5 GPS Sensor"
Example: add_block("vexv5lib/Sensors/V5 GPS Sensor","myModel/myBlock",MakeNameUnique="on")
Extended Capabilities
Version History
Introduced in R2022b

