Search
K

Configuration

Every device connected to the Expansion Hub (REV-31-1153) will need to be added to the Robot Configuration file before you can use the device in your program. The Robot Configuration will allow you to give your sensors and actuators meaningful names that you can reference while programming.
For this example, we will configure a simple two motor robot drivetrain.
Step
Image
Select the menu on either the Driver Station or Robot Controller. Then select “Configure Robot”.
Select “New” in the top left hand corner.
Screenshot_2010-04-11-22-14-32.png
Select “Expansion Hub Portal 1” (embedded).
Screenshot_2010-04-11-22-51-34.png
Select “Expansion Hub 1”.
Screenshot_2010-04-11-22-54-11.png
Select “Motors”.
Screenshot_2010-04-11-22-54-47.png
Select the Drop Down menu for “Port 0” then select the motor type attached to the port. In the case of the Minibot in Figure 4, select the “Rev Robotics Core Hex Motor”.
Press “Enter motor name here” and name the motor “left_drive”.
This is the name that you will use when you are programming your robot to control this motor. Always use descriptive names so that you can remember what a device does when you are programming.
Repeat the process for “Port 1” and name the motor “right_drive”.
Screenshot_2010-04-11-22-56-21.png
Press “Done” once to go back to the list of device ports and then select I2C Bus 0.
Add the built-in REV Expansion Hub IMU. Name it “imu”
Press the “Done” button (at the top left corner of the page) 3 times.
C:\Users\Rachel\AppData\Local\Microsoft\Windows\INetCache\Content.Word\path13930-3-9.png
Press “Save”.
Enter “miniBot” as your configuration name, then select “OK”.
Screenshot_2010-04-11-22-56-41.png
You now have an active configuration called “miniBot”. Press the Android back button to return to the Driver Station page.
Screenshot_2010-04-11-23-11-07.png