Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| dmc-60c:getting-started [2018/06/27 22:00] – Thomas Kappenman | dmc-60c:getting-started [2022/10/04 11:38] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== | + | ====== |
| - | This guide will provide a step by step guide of setting up the FRC Driver Station environment | + | This guide will provide a step by step guide of setting up the DMC60C API and configuration utility, as well as the FRC Driver Station environment. |
| ----- | ----- | ||
| Line 11: | Line 11: | ||
| * USB Cable or Ethernet cable to plug it in. | * USB Cable or Ethernet cable to plug it in. | ||
| * **DMC60C** | * **DMC60C** | ||
| - | * **USB Gamepad** (Optional) | + | * **USB Gamepad** (For example projects) |
| ===Software=== | ===Software=== | ||
| - | * **Labview FRC 2017** | + | * **Labview |
| - | * [[http://www.ni.com/download/ | + | * [[https://wpilib.screenstepslive.com/s/ |
| - | * **Labview | + | * **FRC Update Suite** |
| - | * [[http://www.ni.com/download/first-robotics-software-2017/7183/en/]] | + | * [[https://wpilib.screenstepslive.com/s/currentCS/m/cpp/l/ |
| - | * **Eclipse** for C++ and Java development | + | * **WPILIB Suite with VS Code installed** |
| - | * [[https://wpilib.screenstepslive.com/s/currentCS/m/ | + | * [[https://github.com/wpilibsuite/allwpilib/releases]] |
| * **DMC60C API** | * **DMC60C API** | ||
| - | | + | * [[https://github.com/Digilent/dmc60c-frc-api]] |
| - | * **WinSCP** to transfer files to the roboRIO. | + | |
| - | | + | |
| ----- | ----- | ||
| Line 35: | Line 33: | ||
| >1.1) Power up the roboRIO and plug it into your network via ethernet cable, or into the computer via USB. | >1.1) Power up the roboRIO and plug it into your network via ethernet cable, or into the computer via USB. | ||
| - | > | + | >1.2) Open **roboRIO Imaging Tool**. **Find** the roboRIO in the roboRIO Targets box. |
| > | > | ||
| + | > | ||
| >NOTE: If the roboRIO does not appear on the list, make sure that it is connected to the same network as the computer running the Imaging tool. | >NOTE: If the roboRIO does not appear on the list, make sure that it is connected to the same network as the computer running the Imaging tool. | ||
| > | > | ||
| - | >Enter your **Team Number** in the appropriate box. | + | >1.3) Enter your **Team Number** in the appropriate box. |
| > | > | ||
| - | >Check the box next to **Format Target**, and select FRC_roboRIO_2018_v*.zip then click **Reformat**. | + | >1.4) Check the box next to **Format Target**, and select FRC_roboRIO_2018_v*.zip then click **Reformat**. |
| > | > | ||
| >Once the roboRIO has been successfully reformatted and updated, you may close the Imaging tool. | >Once the roboRIO has been successfully reformatted and updated, you may close the Imaging tool. | ||
| - | >1.3) Open WinSCP | + | ====2. Installing DMC60C Library files ==== |
| + | >2.1) Run **Install DMC60C libraries | ||
| + | > | ||
| + | > | ||
| + | > | ||
| + | >2.2) Selecting 1 or 2 will copy the DMC60C config server | ||
| + | > | ||
| + | >2.3)The DMC60C config server is hosted at " | ||
| - | | File Protocol | + | ====3. Configuring your DMC60C ==== |
| - | | Host Name | The IP address | + | >3.1) Open an internet browser and type " |
| - | | Port | 22 | | + | > |
| - | | User name | admin | | + | >3.2) If the DMC60C configuration utility was successfully set up, it will show up in the browser. Make sure to change the device ID from 0 to any number between 1 and 65 before continuing. You may also configure any other options here as well. |
| - | | Password | + | > |
| + | > | ||
| - | > | + | ====4. Opening an example project (C++/Java) ==== |
| + | >4.1) Open FRC VS Code 2019. | ||
| + | > | ||
| + | >4.2) Click **File> | ||
| + | > | ||
| + | >4.3) Navigate to the DMC60C API git examples (**dmc60c-frc-api\Examples**) folder. Select the folder containing the example project and click **Select folder**. | ||
| + | > | ||
| + | > | ||
| + | > | ||
| + | >The project folder will be added to the VS Code workspace. This project already has the DMC60C vendor dependencies installed. | ||
| + | > | ||
| + | >4.4) In the explorer tab, open **.wpilib/wpilib_preferences.json**. Change | ||
| + | > | ||
| + | > | ||
| - | ====2. | + | ====4. Opening an example project (Labview) ==== |
| + | >4.1) Open LabVIEW FRC 2019. | ||
| + | > | ||
| + | >4.2) Click **File> | ||
| + | > | ||
| + | >4.3) Navigate to the **dmc60c-frc-api\Examples\Labview** folder. Open the example project folder, select the .lvproj, and click OK to open the project. | ||
| + | > | ||
| + | > | ||
| + | > | ||
| + | >4.4) Right click the RoboRIO Target and open the Properties. | ||
| + | > | ||
| + | > | ||
| + | > | ||
| + | >4.5) Under IP Address / DNS Name, change the team number 42 to your team number. Click OK. | ||
| + | > | ||
| + | > | ||
| + | ====5. Running the example project (C++/Java) ==== | ||
| + | >5.1) Run **FRC Driver Station** to open the FRC Driver Station. | ||
| + | > | ||
| + | >5.2) Click the gear on the left side of the driver station. Change the **Team Number** to the roboRIO' | ||
| + | > | ||
| + | >5.3) Plug in the controller and wait for the joysticks light to turn green. | ||
| + | > | ||
| + | > | ||
| + | > | ||
| + | >5.4) Open src/ | ||
| + | > | ||
| + | > | ||
| + | > | ||
| + | >5.5) When ready, click the WPI Logo on the top right. Click **WPILib C++ Deploy** and click **Ok** to deploy the code to the roboRIO. | ||
| + | > | ||
| + | > | ||
| + | > | ||
| + | >5.6) Click the steering wheel on the left side of the driver station. Select **Teleoperated** and click **Enable**. This will start the teleoperated loop in the deployed example code on the roboRIO. You should now be able to drive the DMC60C with the connected joystick. | ||
| - | >2.1) After installing | + | ====5. Running the example project (LabVIEW) ==== |
| + | >5.1) Run **FRC Driver Station** to open the FRC Driver Station. | ||
| + | > | ||
| + | >5.2) Click the gear on the left side of the driver station. Change the **Team Number** to the roboRIO' | ||
| + | > | ||
| + | >5.3) Plug in the controller and wait for the joysticks light to turn green. | ||
| + | > | ||
| + | >{{:dmc-60c: | ||
| + | > | ||
| + | >5.4) Open **Target/Team Code/Begin.vi**. Press **CTRL+E** to open the block diagram for Begin.vi. | ||
| + | > | ||
| + | >{{:dmc-60c: | ||
| + | > | ||
| + | >5.5) Change | ||
| + | > | ||
| + | >5.5) When ready, open **Target/ | ||
| + | > | ||
| + | >5.6) Click the steering wheel on the left side of the driver station. Select **Teleoperated** and click **Enable**. This will start the teleoperated loop in the deployed example code on the roboRIO. You should now be able to drive the DMC60C with the connected joystick. | ||
| - | {{tag> | + | {{tag> |

