Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
dmc-60c:getting-started [2019/01/07 20:15]
Thomas Kappenman [5. Opening an example project (Labview)]
dmc-60c:getting-started [2019/01/07 20:29] (current)
Thomas Kappenman [5. Running the example project]
Line 91: Line 91:
 > >
 >​{{:​dmc-60c:​lvproperties2.jpg?​direct&​600|}} >​{{:​dmc-60c:​lvproperties2.jpg?​direct&​600|}}
-====5. Running the example project ====+====5. Running the example project ​(C++/​Java) ​====
 >5.1) Run **FRC Driver Station** to open the FRC Driver Station. >5.1) Run **FRC Driver Station** to open the FRC Driver Station.
 > >
Line 99: Line 99:
 > >
 >​{{:​dmc-60c:​driverstation.jpg?​direct&​600|}} >​{{:​dmc-60c:​driverstation.jpg?​direct&​600|}}
->5.4) Open src/​main/​cpp/​Robot.cpp or src/​main/​java/​frc/​robot/​Robot.java to open the top level robot implementation. Change the device number to the device number of your DMC60C.+
 +>5.4) Open src/​main/​cpp/​Robot.cpp or src/​main/​java/​frc/​robot/​Robot.java to open the top level robot implementation. Change the device number to the device number of your DMC60C ​and save the file.
 > >
 >​{{:​dmc-60c:​devicenumber.jpg?​direct&​600|}} >​{{:​dmc-60c:​devicenumber.jpg?​direct&​600|}}
 > >
->5.5) When ready, click **Run>​Run**. Click **WPILib C++ Deploy** and click **Ok** to deploy the code to the roboRIO.+>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.
 > >
 >​{{:​dmc-60c:​deploy.jpg?​direct&​600|}} >​{{:​dmc-60c:​deploy.jpg?​direct&​600|}}
 +>
 +>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.
 +
 +====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'​s team number and press enter. This should find the team's roboRIO. The roboRIO'​s IP address can also be entered here.
 +>
 +>5.3) Plug in the controller and wait for the joysticks light to turn green.
 +>
 +>​{{:​dmc-60c:​driverstation.jpg?​direct&​600|}}
 +>
 +>5.4) Open **Target/​Team Code/​Begin.vi**. Press **CTRL+E** to open the block diagram for Begin.vi.
 +>
 +>​{{:​dmc-60c:​lvbegin.jpg?​direct&​600|}}
 +>
 +>5.5) Change the device number feeding into the DMC60C Open VI to your DMC60C'​s device number. If applicable, change the wheel parameters based on your hardware configuration.
 +>
 +>5.5) When ready, open **Target/​Robot Main.vi** and run it. This will deploy the LabVIEW program 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. >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>​dmc60c gsg frc }} {{tag>​dmc60c gsg frc }}