Configuring a GPS Sensor in VEXcode Pro V5

When starting to program with VEXcode Pro V5, commands for the GPS Sensor will not appear in the Command Reference until it has been configured.


Adding the GPS Sensor as a Device in VEXcode V5


To configure a device, select the Robot Configuration button to open the Robot Configuration window. A project must be open in order to use the Robot Configuration window.


Select 'Add a device.'


Select the GPS Sensor.


Select which port the sensor is attached to on the VEX V5 Brain. Ports that are already configured for other devices will be unavailable. Once the port has been selected, select “Done” to submit the sensor to the configuration or “Cancel” to return back to the Robot Configuration window.

Note: Selecting “Cancel” will undo any changes you have made to the device and will not be a part of the configuration.


There is an option to change the X, Y and Angle offsets, adjust the offsets depending on the design of your robot.

For more information about how to determine the GPS Sensor's offsets, view this article from the VEX Library.


Once the port is chosen and the offsets have been adjusted, select ‘DONE.'


You can change the port number for the GPS Sensor by selecting the GPS Sensor in the Robot Configuration window.


Select the port icon in the top right, then select a different port on the Port Selection screen and the port number will turn blue. Then select "Done" to submit the change.

Renaming a GPS Sensor


You can also rename the GPS Sensor by changing the name in the text box at the top of the Port Selection window. If you select an invalid name, the text box will highlight orange to indicate. Then select "Done" to submit the device changes to the configuration.


If you change the name of a GPS Sensor that is already being used in your project, you will need to update the sensor's name in the command to the new name.

Deleting a GPS Sensor


GPS Sensors can also be deleted by selecting the “Delete” option at the bottom of the Offset window.

Note: If you delete a GPS Sensor that is already being used in your project, your project will generate an error if you try to download it until you also delete the commands that were using the deleted device.

For more information, help, and tips, check out the many resources at VEX Professional Development Plus

Last Updated: