1chung Robofest 2005 RCX code Workshop Jan 29, 2005 CJ Chung.

Slides:



Advertisements
Similar presentations
Numbers Treasure Hunt Following each question, click on the answer. If correct, the next page will load with a graphic first – these can be used to check.
Advertisements

Advanced Piloting Cruise Plot.
1
Feichter_DPG-SYKL03_Bild-01. Feichter_DPG-SYKL03_Bild-02.
© 2008 Pearson Addison Wesley. All rights reserved Chapter Seven Costs.
Copyright © 2003 Pearson Education, Inc. Slide 1 Computer Systems Organization & Architecture Chapters 8-12 John D. Carpinelli.
Chapter 1 The Study of Body Function Image PowerPoint
Copyright © 2011, Elsevier Inc. All rights reserved. Chapter 6 Author: Julia Richards and R. Scott Hawley.
Author: Julia Richards and R. Scott Hawley
1 Copyright © 2013 Elsevier Inc. All rights reserved. Appendix 01.
Intro to NXT Programming
1chung 5 th Annual Robofest 2004 Informational Meeting Mar. 20, 2004 Chan Jin Chung Ali Khazaal Jason Lo Computer Science Lawrence Technological University.
Robofest 2005 Introduction to Programming RIS 2.0 RCX Code.
Chung for Robofest 05 1 Introduction to RoboLab CJ Chung Lawrence Technological University.
Properties Use, share, or modify this drill on mathematic properties. There is too much material for a single class, so you’ll have to select for your.
UNITED NATIONS Shipment Details Report – January 2006.
RXQ Customer Enrollment Using a Registration Agent (RA) Process Flow Diagram (Move-In) Customer Supplier Customer authorizes Enrollment ( )
1 RA I Sub-Regional Training Seminar on CLIMAT&CLIMAT TEMP Reporting Casablanca, Morocco, 20 – 22 December 2005 Status of observing programmes in RA I.
Properties of Real Numbers CommutativeAssociativeDistributive Identity + × Inverse + ×
Exit a Customer Chapter 8. Exit a Customer 8-2 Objectives Perform exit summary process consisting of the following steps: Review service records Close.
Create an Application Title 1A - Adult Chapter 3.
Custom Statutory Programs Chapter 3. Customary Statutory Programs and Titles 3-2 Objectives Add Local Statutory Programs Create Customer Application For.
FACTORING ax2 + bx + c Think “unfoil” Work down, Show all steps.
Rhesy S.ppt proRheo GmbH
Mike Scott University of Texas at Austin
1 Click here to End Presentation Software: Installation and Updates Internet Download CD release NACIS Updates.
Office 2003 Introductory Concepts and Techniques M i c r o s o f t Windows XP Project An Introduction to Microsoft Windows XP and Office 2003.
Excel Functions. Part 1. Introduction 2 An Excel function is a formula or a procedure that is performed in the Visual Basic environment, outside the.
Photo Slideshow Instructions (delete before presenting or this page will show when slideshow loops) 1.Set PowerPoint to work in Outline. View/Normal click.
REVIEW: Arthropod ID. 1. Name the subphylum. 2. Name the subphylum. 3. Name the order.
Break Time Remaining 10:00.
Table 12.1: Cash Flows to a Cash and Carry Trading Strategy.
PP Test Review Sections 6-1 to 6-6
EU market situation for eggs and poultry Management Committee 20 October 2011.
EU Market Situation for Eggs and Poultry Management Committee 21 June 2012.
Bright Futures Guidelines Priorities and Screening Tables
EIS Bridge Tool and Staging Tables September 1, 2009 Instructor: Way Poteat Slide: 1.
Bellwork Do the following problem on a ½ sheet of paper and turn in.
Exercise 1: Install PC Software & NXT Firmware
Exarte Bezoek aan de Mediacampus Bachelor in de grafische en digitale media April 2014.
VOORBLAD.
Copyright © 2012, Elsevier Inc. All rights Reserved. 1 Chapter 7 Modeling Structure with Blocks.
1 RA III - Regional Training Seminar on CLIMAT&CLIMAT TEMP Reporting Buenos Aires, Argentina, 25 – 27 October 2006 Status of observing programmes in RA.
Factor P 16 8(8-5ab) 4(d² + 4) 3rs(2r – s) 15cd(1 + 2cd) 8(4a² + 3b²)
Basel-ICU-Journal Challenge18/20/ Basel-ICU-Journal Challenge8/20/2014.
1..
CONTROL VISION Set-up. Step 1 Step 2 Step 3 Step 5 Step 4.
© 2012 National Heart Foundation of Australia. Slide 2.
Adding Up In Chunks.
Understanding Generalist Practice, 5e, Kirst-Ashman/Hull
1 10 pt 15 pt 20 pt 25 pt 5 pt 10 pt 15 pt 20 pt 25 pt 5 pt 10 pt 15 pt 20 pt 25 pt 5 pt 10 pt 15 pt 20 pt 25 pt 5 pt 10 pt 15 pt 20 pt 25 pt 5 pt Synthetic.
Note to the teacher: Was 28. A. to B. you C. said D. on Note to the teacher: Make this slide correct answer be C and sound to be “said”. to said you on.
Model and Relationships 6 M 1 M M M M M M M M M M M M M M M M
25 seconds left…...
Analyzing Genes and Genomes
©Brooks/Cole, 2001 Chapter 12 Derived Types-- Enumerated, Structure and Union.
Essential Cell Biology
Clock will move after 1 minute
Intracellular Compartments and Transport
PSSA Preparation.
Essential Cell Biology
Immunobiology: The Immune System in Health & Disease Sixth Edition
Energy Generation in Mitochondria and Chlorplasts
Select a time to count down from the clock above
Murach’s OS/390 and z/OS JCLChapter 16, Slide 1 © 2002, Mike Murach & Associates, Inc.
Profile. 1.Open an Internet web browser and type into the web browser address bar. 2.You will see a web page similar to the one on.

Presentation transcript:

1chung Robofest 2005 RCX code Workshop Jan 29, 2005 CJ Chung

2chung Agenda Comparison of RCX code and RoboLab programming languages (Chung, 15 min) RIS RCX code programming tutorial (Shvartsman, 70 min) Break – 10 min RIS RCX code programming tutorial 2 (Shvartsman, 70 min) RCX code tips (Chung, 15 min)

3chung Assistants Warren Beard Steven Kryskalla

4chung Why Icon based Visual Programming Languages?

5chung Right Lane Ends

6chung

7 Go forward for 2 sec. and stop program test { #include main { ext InterfaceType "kFreestyle" rcx_ClearTimers bbs_GlobalReset([A B C]) try { on [ A C ] } retry on fail wait 200 try { off [ A C ] } retry on fail }

8chung Go forward for 2 sec. and stop

9chung RCX code vs RoboLab Comparison Table

10chung

11chung Robofest Statistics: Programming Language Used by Teams in Robofest 2004 Data from 85 teams

12chung RoboLab vs. RCX code Follow a line and stop when the bumper is hit.

13chung RCX code hands-on workshop by Andrey Shvartsman (See another slide: intro2RCX.ppt)

14chung Robotic Invention System RCX code 2.0 Block Types Use them

15chung Avoid using them. They are for a specific robot. They wont work on your robot. Avoid using Sensors unless you have independent tasks

16chung Power Commands On On For Off Coast Brake Set Power: Min 1, Max 8 Set Direction Reverse Direction: Not recommended to use. Use Set Direction instead.

17chung Can you simplify this program?

18chung Wait Commands Wait For Wait Until

19chung Remember! Cover your robot and IR tower when you download programs Save your programs File Names should be meaningful Use logbook and comment

20chung Repeat Repeat For Repeat Forever Repeat While Repeat Until: sensor watcher

21chung Difference between Repeat Until and Repeat While Repeat Until command constantly monitors the sensor or variable and interrupts the repeated set of commands as soon as the condition is true. Repeat While: repeat a stack of commands as long as a condition is true; command only tests the sensor or variable at the end of each repeat.

22chung Structured Programming in RCX code Use My Blocks No parameters Macros, not subroutines

23chung My Blocks

24chung Opening a saved program Never use File | Open! There is a bug involving MyCommands Use Main Menu | Program | Vault

25chung Line following - Zigzag methods

26chung

27chung Zigzag without Sensor Watchers

28chung What will happen if the robot starts here… here

29chung Line following with 2 light sensors

30chung Line following with 2 light sensors II

31chung Line following with 2 light sensors III

32chung End Program Without End Program, you need to press Green button to stop the program

33chung Comments Comment Block Log book

34chung Useful Techniques End Program LCD View Display Value Timers Variables Sensors IR Messages Beeps and Tones to debug by hearing

35chung or Move forward until the robot reaches a black line (area) or hit a wall (detected by a touch sensor) Question:

36chung Solution using sensor watchers

37chung or Move forward until the robot reaches a black line (area) or hit a wall (detected by a touch sensor) Solution without using Sensor watchers

38chung or Move forward until the robot reaches a black line (area) or hit a wall (detected by a touch sensor) ? Solution without using Sensor watchers with using a variable

39chung RIS 2.0 XP Patch will stop the Robotics Invention System 2.0 launcher window from appearing when Windows XP is started. Now available for download at

40chung Epilog Read Robofest 2005 Rules Control vs. Speed Exhibition FAQ LTU is planning Robofest Playing Field Sale: Please contact