Configuring a GPS Sensor in VEXcode Pro V5

The VEX Visual Studio Code Extension has replaced VEXcode Pro V5, which is now end-of-life.

VEXcode Blocks and VEXcode Text remain actively developed and supported for all VEX platforms.

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.

Image of a V5 GPS sensor, illustrating its design and features, used in robotics for navigation and positioning. The sensor is shown from a top-down perspective, highlighting its compact size and connection ports.


Adding the GPS Sensor as a Device in VEXcode V5

Icon representing the device menu for V5 robot configuration, illustrating options for managing and selecting devices within the VEX V5 robotics system.

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.

Screenshot of the 'Add Device' interface in VEX Robotics V5 configuration, showing options for adding devices to the robot setup.

Select 'Add a device.'

A detailed list of V5 devices used in robot configurations, showcasing various components and their connections for effective robotics design.

Select the GPS Sensor.

Diagram showing port selection options for VEX V5 Robot configuration, illustrating various ports and their corresponding functions for optimal robot setup.

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.

Illustration of a dropdown menu callout in the V5 Robot Configuration section, highlighting key options and features for users to select when setting up their robot.

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.

Illustration of a completed robot configuration setup, highlighting key components and connections, as part of the V5 Category Description in the Robot Config section.

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


Screenshot of the V5 Robot Config GPS device list, displaying various GPS devices compatible with VEX robotics systems, including their names and specifications.

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

Diagram showing the configuration of a robot with labeled ports, illustrating the changes made to the robot's setup in the V5 category description under the Robot Config section.

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

Screenshot showing the steps to rename GPS settings in V5 Robot Config, including highlighted options and interface elements for user guidance.

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.

Screenshot of the V5 Robot Configuration name change process, displaying fields for entering the new robot name and confirming the change.

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

Illustration showing the steps to delete a robot configuration in V5, including a callout highlighting the delete option.

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: