![frc driver station size frc driver station size](https://first.wpi.edu/Images/CMS/First/driver_station_on_rdax_600x613.jpg)
![frc driver station size frc driver station size](https://firstfrc.blob.core.windows.net/frc2020/Backgrounds%2FInfiniteRecharge_002.png)
“Opens” devices Tells program where device is plugged into cRio Gives the device a “Refnum” name which can be recalled from other areas of the program (such as tele-op) Initialize additional components desired to be added to the system here 10ġ1 Begin.vi Camera configuration – unlikely to need to change this, if use it at all - Discuss in later session.
![frc driver station size frc driver station size](https://i.imgur.com/kBvFNh.jpg)
#FRC DRIVER STATION SIZE CODE#
We will focus on the main block VIs: Begin TeleOp Autonomous X For now, never mind these 8ĩ OPEN – SET/GET - CLOSE Programming of devices in general follows the following protocol: Open a Device, Tell the code where it is plugged in Give it a name Get info from a device, or Set a value to a device Close the Device Open a Joystick Get the Y Joystick Value Close the Joystick Open a motor Set the motor speed Close the motorġ0 Begin.vi Initializes the camera, motors, joysticks Select and modify sub-VI's from here Or click on sub VI from Project Explorer Recommended not to make changes to “Robot Main.vi” 7 Give cRIO IP address – your team number goes in xx.yy e.g Click “Finish” 4ĥ Project Explorer Project Explorer appearsĪll code listed under “RT CompactRIO target 10.xx.yy.2” Displays pre-written set of VI's to allow for an out of box solution Top level VI is “Robot Main.vi” Double click to open it 5įront Panel has controls and indicators Not much on this one Driver’s Station is main operator interface Click on “Window” Then Select “Show Block Diagram” 6 1 FRC Robot Framework Labview Made Easy (er) For FIRST Robotics 1Ģ FRC Framework Base Code with Architecture Pre-configuredĭefines Interaction between code sections Designated places to add functionality Focus on robot functionality rather than program structure Let's walk through this together 2ģ FRC Project Select FRC cRIO Robot Project Dialogue box opens 3Ĥ Create Project Give Project a name Choose where to save project