Available at: www.etcurr.comLesson 5.1 – Program Functions for VEX Robots Program Functions for VEX Robots.

Slides:



Advertisements
Similar presentations
1 After completing this lesson, you will be able to: Create a new presentation using a design template. Enter text in the Slide pane. Create a new slide.
Advertisements

Creating and Editing a Web Page Using Inline Styles
1. Chapter 29 Creating Forms 3 Understanding Forms Word enables you to create fill-in forms to eliminate the need for storing pre-printed forms. Add.
Advanced Microsoft Word Hosted by Jared Hoffman Topics Keyboard Shortcuts Customizing Toolbars and Menus Auto Format & Auto Correct Tabs Inserting Pictures.
DRAFTING and DIMENSIONING 98. A properly dimensioned drawing of a part is very important to the manufacturing outcome. With CATIA, it can be a very simple.
Programing Concept Ken Youssefi/Ping HsuIntroduction to Engineering – E10 1 ENGR 10 Introduction to Engineering (Part A)
Available at: – Program Optical Quad Encoders in Autonomous Mode Program optical quad encoders in autonomous mode.
ECE 272 Xilinx Tutorial. Workshop Goals Learn how to use Xilinx to: Draw a schematic Create a symbol Generate a testbench Simulate your circuit.
Connecting VEX and ROBOTC
How to use the VHDL and schematic design entry tools.
Using the File Manager WebCT 6. Understanding File Manager The File Manager is the area where all course files are stored. Whenever you link a file in.
Available at: – Program Potentiometer in Autonomous Mode Program potentiometer in autonomous mode.
1 Excel Lesson 3 Organizing the Worksheet Microsoft Office 2010 Introductory Pasewark & Pasewark.
Chapter 9 Macros, Navigation Forms, PivotTables, and PivotCharts
© 2008 The McGraw-Hill Companies, Inc. All rights reserved. M I C R O S O F T ® Animating and Using Multimedia Effects Lesson 10.
Microsoft ® Office Outlook ® 2007 Training See and Use Multiple Calendars ICT Staff Development presents:
Program ultrasonic range sensor in autonomous mode
© 2008 The McGraw-Hill Companies, Inc. All rights reserved. WORD 2007 M I C R O S O F T ® THE PROFESSIONAL APPROACH S E R I E S Lesson 21 Fields and Forms.
Available at: Lesson 3.6 – Program Line Follower in Autonomous Mode Program Line Follower in Autonomous Mode.
Teacher/Mentor Institute Using easyC Joel Kirkland July 30-31, 2015.
Using Waits, Loops and Switches WAIT please!. Waits, Loops and Switches Pre-Quiz 1. In programming, what is a loop? When is a loop useful? 2. How can.
1. Chapter 4 Customizing Paragraphs 3 More Paragraph Changes Highlight a paragraph in Word by applying borders and shading. Sort paragraphs to control.
XP New Perspectives on Microsoft Access 2002 Tutorial 21 Microsoft Access Tutorial 2 – Creating And Maintaining A Database.
Robot C and Natural Language
Chapter 5 Quick Links Slide 2 Performance Objectives Understanding Framesets and Frames Creating Framesets and Frames Selecting Framesets and Frames Using.
Available at: Lesson 3.5 – Program Light Sensor in Autonomous Mode Program Light Sensor in Autonomous Mode.
1. Chapter 15 Creating Charts 3 Charting Data in Word A chart or graph presents data visually. A chart depicts numeric data in a graphical format. If.
Vex Robotics Program six: combining autonomous and radio control.
Excel 2010 Formatting Columns and Rows Excel 2010 / Mr. Bitenas In this lesson you will learn how to insert, delete, and resize Columns and Rows.
Created by Barbara Pitsinger
Lesson 14: Exploring Excel Learning Objectives After studying this lesson, you will be able to:  Explain ways Excel can help your productivity.
Lesson 1: Exploring Excel Learning Objectives After studying this lesson, you will be able to:  Explain ways Excel can help your productivity.
Getting Started with Word & Saving Guided Lesson.
Foundation year Practical Lec.5: Practical Lec.5: Presentation Software Using Microsoft Office 2007 Practical Lec.5: Practical Lec.5: Presentation Software.
Dreamweaver MX. 2 Tools for Code Editing (p. 366) n An HTML editor like Dreamweaver writes most of the code you need, but at times you will need to perform.
Vex Robotics Program four: reversing and turning.
Creating and Editing a Web Page
Available at: – Program Functions to Accept Values Program Functions to Accept Values.
Adding Contacts in Outlook. Follow these steps to begin building your contacts! By adding contacts in your Outlook, you will be able to develop an organized.
1 SAVE A DRAWING AS A TEMPLATE TO REUSE: SETTINGS, DRAWING SHEETS, LAYOUTS, STYLES WITHOUT RECREATING THEM IN EACH NEW DRAWING. TO REUSE: SETTINGS, DRAWING.
Vex Robotics Program Two: Using two motors. Program two: using the motors In the last section, you learned how to turn on one motor. Now, you will take.
Vex Robotics program three: using motors and sensors together.
>>0 >>1 >> 2 >> 3 >> 4 >>
Robot C and Natural Language. Create a folder Create a folder on your desktop to insert all your Robot C files, Here you will begin with your template.
Working with Tables A table is a grid of cells arranged in rows and columns. Tables can be customized and are useful for various tasks such as presenting.
Electrical Engineer Responsibilities
Using the Bumper switch
Electrical Engineer Responsibilities
An Introduction to VEX IQ Programming with Modkit
Robotics Programming Using Shaft Encoders
Doing a Bond Screening Login to the computer Launch Microsoft Excel
Electrical Engineer Responsibilities
Adding Post Type Archive in WordPress Navigation Menus Guided By: wpglobalsupportwpglobalsupport.
Lesson 8: Granting Patient List [Proxy] Access
Basics for Robotics Programming
Electrical Engineer Responsibilities
RobotC Sensors.
Project Overview Introduction Clawbot Build Design Modification
RobotC Sensors.
Loops and Switches Pre-Quiz
SmartArt Graphics Guided Lesson.
An Introduction to VEX IQ Programming with Modkit
Lesson 8: Granting Patient List [Proxy] Access
Lesson Nine: Granting Patient List (Proxy) Access
Excel 2010 Intro to Charts A chart is a tool you can use in Excel to communicate your data graphically. Charts allow your audience to see the meaning behind.
Automation and Programming
Macro.
Using Waits, Loops and Switches
Exploring Computer Science Lesson 6-11
Presentation transcript:

Available at: – Program Functions for VEX Robots Program Functions for VEX Robots

Available at: – Program Functions for VEX Robots Program Functions for VEX Robots  Performance Objective: Using a bumper switch, line follower, and potentiometer, program functions to allow a robot to follow a line, touch a wall, raise a crane and then terminate.  Enabling Objectives:  describe the purpose and benefits of a function  match associated terms that define and describe functions  describe why functions are used functions  create code that develops a function  draw a flow chart for using a bumper switch, line follower, and potentiometer

Available at: – Program Functions for VEX Robots Functions  A function is a portion of code within a larger program that performs a specific task and is relatively independent of the remaining code?

Available at: – Program Functions for VEX Robots Functions  Functions allow you to reuse code rather than retyping a group of commands  Functions allow you to group a series of steps under one name.

Available at: – Program Functions for VEX Robots Creating Functions  Navigate to the menu item project and select Add New Function from the drop down menu.

Available at: – Program Functions for VEX Robots Creating Functions  A dialog box will appear which allows configuration of the function. This dialog box will allow us to name the function.  Type line follower for the functions name and Select OK.  Your done, you have create your first function. Now all you have to do is call the function.

Available at: – Program Functions for VEX Robots Creating Functions  Select the (tab/function) you just created, titled linefollow. Now enter the code that allows the line follower to operate.  To the right is an example of code to operate the line follow sensor. If you need assistance, please refer to lesson 3.6

Available at: – Program Functions for VEX Robots Calling Functions  Since our function now has code inside, we are ready to call the function from the autonomous mode/function tab.  Drag the function object into the path between variables and End and a dialog box will appear asking you configuration settings. Click OK and you have called a function

Available at: – Program Functions for VEX Robots Function Logic  Drawing a flow chart only requires a slight modification to what we have learned so far.

Available at: – Program Functions for VEX Robots Function Logic  If you notice on the right, we have a normal flow chart but notice where the function is being called drive forward. To the left is the function/mode autonomous where we call the function

Available at: – Program Functions for VEX Robots Try it out  Using a bumper switch, line follower, and potentiometer, program functions to allow a robot to follow a line, touch a wall, raise a crane and then terminate