Configuring Devices

The configuration file is a readable file created by the user through the Driver Station Application. When creating a configuration file users are required to assign each device to a port, select the type of device it is from options provided by the SDK, and give it a unique name.

It's important to name each device something recognizable and distinguishable!

Once a configuration file is saved or activated the robot will restart. This restart is so the SDK can read the file, determine what devices are present, and add the devices to the hardwareMap class.

Learn more about configuration by checking out our Hello Robot tutorial for Blocks or OnBot Java.

Configuring Common Hardware Devices

Accessing the Configuration Utility

  • Select the menu in the stop right corner of the Driver Station app. Then select Configure Robot.

  • In the Available configurations page, select New.

  • In the USB Devices in configuration page select the Control Hub Portal.

Note: If you have an Expansion Hub connected via USB it will appear as an Expansion Hub Portal.

  • Within the Hub Portal select the device you want to configure. In this use case, select the Control Hub.

Note: if you have an Expansion Hub connected to a Control Hub via RS485, the Expansion Hub will also appear as a configurable device in the portal.

  • This will bring you to the page shown in the image. From here you can configure motors, servos and sensors that you are using. Follow through the rest of the guide to figure out how to configure devices that will be used in the Test Bed section.

Note: The way that Digital and Analog devices are configured versus how I2C devices are configure differ significantly. This is because each physical I2C port is a different bus that can host multiple different sensors. For more information on the different types of sensors check out the sensors section.

Configuring Actuators and Sensors

This walkthrough provides an example of configuring each device type. This process will vary slightly depending on the part in use and decided name.

Configuring a Motor

Select Motors.

The Motor page will allow you to configure all four motor ports on the Hub. For this example, a REV Robotics Core Hex Motor is being configured to Port 0. Select the port and then the motor from the dropdown.

Name the motor then select done.

Note: When naming hardware in the configuration file the REV Control System is Case Sensitive.

Select done once all motors are added.

Configuring RS485 Devices

Expansion Hub

Configurations are unique to each Expansion Hub. A new configuration file must be created if the Expansion Hub is changed with a different one.

  1. After creating a new configuration file, select the Control Hub Portal in the USB Devices menu.

  1. An Expansion Hub connected via RS485 will appear here as a separate portal.

  1. Once in the Expansion Hub's portal, devices can be configured the same as the Control Hub using the directions above. At the top of the menu, it will show if you are within the Expansion Hub or Control Hub's options.

Select Done once all devices are added.

Servo Hub

  1. After creating a new configuration file, select the Control Hub Portal in the USB Devices menu.

  1. Select the Servo Hub you wish to configure. It will show the set ID number.

  1. Select Servos.

  1. Servos will be configured the same as for a Control or Expansion Hub from here.

Select Done once all servos are added.

Saving the Configuration File

  • Hit Done twice until you reach the USB Devices in configuration page. On the USB Devices in configuration page hit Save.

Name the configuration then select Ok.

Press back to activate the saved configuration. Your Robot Controller will restart once you activate a new configuration.

The active configuration appears in the upper right on the configuration screen and on the main Driver Station screen.

Last updated

Was this helpful?