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.

gps_sensor.jpeg


Adding the GPS Sensor as a Device in VEXcode V5

device_menu_icon.png

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.

add_device.png

Select 'Add a device.'

device_list.png

Select the GPS Sensor.

port_selection.png

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.

dropdown_callout.png

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.

done_callout.png

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


gps_device_list.png

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

changed_port_copy.png

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

rename_gps.png

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.

name_change.png

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

delete_callout.png

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: