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.
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.

Pressing "Scan" on an existing configuration may result in the already named devices being erased. A new configuration file is needed when adding a camera or Expansion Hub.
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
Curious what sensors or devices are natively compatible with the Robot Controller App on the Control Hub? Check our compatibility chart here!
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 a Servo
Select Servos.

The Servo page will allow you to configure all six servo ports on the Hub. For this example, a servo is being added to Port 0.
Note: REV Smart Robot Servos can be configured as a Servo or a Continuous Rotation Servo. The type of device a servo is configured as should correspond with the mode the sensor is in. For more information visit our page on using the SRS Programmer to switch modes.


Name the servo and select done.
Note: When naming hardware in the configuration file the REV Control System is Case Sensitive.

Select done once all servos are added.
Configuring a Digital Device
Select Digital Devices.

The Digital Devices page will allow you to configure all eight digital ports on the Hub. For this example, a touch sensor is being configured to Port 1.
Note: Touch Sensors must always be configured on odd number ports.
Note: REV Touch Sensors can be configured as a REV Touch Sensor or a Digital Device. In the FTC SDK the type of device it is configured as changes the classes and methods that can be used.


Name the sensor and select done.
Note: When naming hardware in the configuration file the REV Control System is Case Sensitive.

Select done once all sensors are added.
Configuring an I2C Device
Select I2C Bus 0.

Select Add.
Note: Each I2C Bus can host more than one I2C sensor as long as the I2C addresses do not conflict. Bus 0 will always host the internal IMU. For more information on I2C sensors visit the I2C section.

On Port 1, which was created in the previous step, open the drop down menu and select the desired sensor. In this example, a REV Color Sensor V3 is being added.
Note: If you are using Color Sensors V1 or V2 select REV Color/Range Sensor. For more information on configuring with the REV Color Sensors visit the Color Sensor Datasheets.

Name the sensor and select done.
Note: When naming hardware in the configuration file, the REV Control System is Case Sensitive.

Select done once all sensors have been added.
Configuring RS485 Devices
Expansion Hub
After creating a new configuration file, select the Control Hub Portal in the USB Devices menu.

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

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
After creating a new configuration file, select the Control Hub Portal in the USB Devices menu.

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

Select Servos.

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?

