1 / 10

                       Part III

                       Part III. Robot Drive. Robot Main.vi. The main body of your code: accesses all of the other programs in your project A big loop! Do not add any more loops here. Begin.vi. Begin: initializes variables. Begin.vi.

misae
Download Presentation

                       Part III

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1.                        Part III Robot Drive

  2. Robot Main.vi • The main body of your code: accesses all of the other programs in your project • A big loop! Do not add any more loops here.

  3. Begin.vi Begin: initializes variables

  4. Begin.vi • Initialize the camera, drive train, joystick, and sensors. • Tip: • Name the variable according to its function! It will be called throughout the program with the same name.

  5. Robot Modes • All of the different modes are programmed in the mode case structure.

  6. Robot Modes • In autonomous mode, the programmed code is looped over and over again. • The code for teleoperated mode is in a subVI, named TeleOp.

  7. WPI Robotics Library • Contains subVIs produced by FRC for use during competition. • Remember, all devices must be opened andclosed!

  8. Robot Drive Palette Remember to close the drive! How many motors are used on the drive train. The different types of drive trains. Joystick palette

  9. Joystick Palette Remember to open and close the joystick! Get data from the joystick.

  10. Tips for Coding • Stay organized!

More Related