PLTW CALIFORNIA STATE CONFERENCE FEBRUARY 19, 2015 COLIN SMITH CENTENNIAL HIGH SCHOOL BAKERSFIELD, CA Advanced RobotC Programming.

Slides:



Advertisements
Similar presentations
Unit 4 - I Said Stop!. Introduction New Topics Timing Parallelism Sequence of Operations New Features NXT terminals New Functions Wait For.
Advertisements

Variables and Functions ROBOTC Software. Variables A variable is a space in your robots memory where data can be stored, including whole numbers, decimal.
While Loops and If-Else Structures
Team 5220 Roboknights. Outline  Getting Started  Hardware Setup/Wiring  Software Setup/Pragmas  Programming with RobotC  Grammar/Syntax  Basic Statements.
CS0004: Introduction to Programming Repetition – Do Loops.
Programing Concept Ken Youssefi/Ping HsuIntroduction to Engineering – E10 1 ENGR 10 Introduction to Engineering (Part A)
Branching Constructs Review l what are branching constructs? what type of branching constructs have we studied? l what is nested if? l what is multiway.
Control Theory (2) Jeremy Wyatt School of Computer Science University of Birmingham.
Bellevue University CIS 205: Introduction to Programming Using C++ Lecture 7: Methods.
© 2004 Pearson Addison-Wesley. All rights reserved5-1 Iterations/ Loops The while Statement Other Repetition Statements.
CS0007: Introduction to Computer Programming Introduction to Arrays.
What is RobotC?!?! Team 2425 Hydra. Overview What is RobotC What is RobotC used for What you need to program a robot How a robot program works Framework.
REPETITION STRUCTURES. Topics Introduction to Repetition Structures The while Loop: a Condition- Controlled Loop The for Loop: a Count-Controlled Loop.
Robotics- Basic On/Off Control Considerations. On/Off Control Forms the basis of most robotics operations Is deceptively simple until the consequences.
Automatic Control Mike Robinson. You can measure the distance from the RC car to some target. What could your program do to keep the car as close to the.
INTERMEDIATE PROGRAMMING LESSON By: Droids Robotics Color Line Follower My Blocks with Inputs: Move Until Black © 2014, Droids Robotics, v. 2.0, Last edit.
08/10/ Iteration Loops For … To … Next. 208/10/2015 Learning Objectives Define a program loop. State when a loop will end. State when the For.
ROBOTC Training Session 1 Timothy Friez 1/10/08 Revision 1.
Chapter 8 Arrays Part II J. H. Wang ( 王正豪 ), Ph. D. Assistant Professor Dept. Computer Science and Information Engineering National Taipei University of.
An Introduction to Programming with C++ Sixth Edition Chapter 7 The Repetition Structure.
Chapter 3 Functions, Events, and Control Structures JavaScript, Third Edition.
Do Now The ratio of men to women on a cruise is 6 to 8. If there are 168 people on the cruise, how many women are there?
Control systems KON-C2004 Mechatronics Basics Tapio Lantela, Nov 5th, 2015.
Unit 9 – “A BIG State Machine”. Introduction New Topics Nested Case Structures Reusable Code.
Variables and Functions ROBOTC Software © 2012 Project Lead The Way, Inc.Principles of Engineering.
Copyright © 2012 Pearson Education, Inc. Publishing as Pearson Addison-Wesley C H A P T E R 5 Repetition Structures.
Digital Control CSE 421.
ROBOTC for IFI Timothy Friez Class #4 2/5/08. Agenda for Tonight Timers Functions Your Questions.
Flowchart. a diagram of the sequence of movements or actions of people or things involved in a complex system or activity. a graphical representation.
Holt CA Course Direct Variation pg. 357 Warm Up Tell whether the ratios are proportional
Casne.ncl.ac.uk Taking care of the CrumbleBot Please do NOT stress the robot's motors 1.Do NOT push the robot 2.Do NOT hold the.
Chapter 5: Looping. Using the while Loop Loop – A structure that allows repeated execution of a block of statements Loop body – A block of statements.
Want to be talented in Math? Want to be talented in Math? Get help with and be awww.iPracticeMath.com Performer.
Lesson 88 Warm Up Pg Course 3 Lesson 88 Review of Proportional and Non- Proportional Relationships.
26/06/ Iteration Loops For … To … Next. 226/06/2016 Learning Objectives Define a program loop. State when a loop will end. State when the For.
CS305j Introduction to Computing Parameters Case Study 1 Topic 10 Parameters Case Study " Thinking like a computer scientist means more than being able.
Digital Control CSE 421.
Control Systems EE 4314 Lecture 12 March 17, 2015
PLTW CALIFORNIA STATE CONFERENCE CENTENNIAL HIGH SCHOOL
ROBOTC for VEX Professional Development
Advanced EasyC Jim Cline July 20-21, 2017.
7 - Programming 7P, Q, R - Testing.
Chapter 5: Repetition Structures
While Loops Chapter 3.
Using Encoders to go Straight
Standard Algorithms Input validation Finding the minimum
INTERMEDIATE PROGRAMMING LESSON
Better Line Following with PID
Chapter 6: Repetition Structures
Chapter 5: Repetition Structures
INTERMEDIATE PROGRAMMING LESSON
Programming – Remote Control Statements
Programming – Remote Control Statements
While Loops and If-Else Structures
Coding Concepts (Basics)
Multitasking Emergency Stop Computer Integrated Manufacturing
For Loops.
Topics Introduction to Repetition Structures
3.1 Iteration Loops For … To … Next 18/01/2019.
While Loops and If-Else Structures
While Loops and If-Else Structures
Recall that a proportional relationship is a relationship between two quantities in which the ratio of one quantity to the.
While Loops and If-Else Structures
Lets Play with arrays Singh Tripty
While Loops and If-Else Structures
EECE.2160 ECE Application Programming
Topics Introduction to Repetition Structures
Is it proportional? We will look at some equations, graphs and tables and you will decide if the relationship is proportional. Tell why or why not. If.
While Loops and If-Else Structures
While Loops And If-Else Structures
Presentation transcript:

PLTW CALIFORNIA STATE CONFERENCE FEBRUARY 19, 2015 COLIN SMITH CENTENNIAL HIGH SCHOOL BAKERSFIELD, CA Advanced RobotC Programming Topics

Multi-Tasking Limitations of Linear programming Users must be careful with what control structures are being used. Adding tasks to control different motors/sensors Sensors can be shared, motors shouldn't

Implementing Multitasking Works like function declaration Task can be started or stopped within main() using the StartTask or StopTask functions.

continued Finally, the task must be defined

Use of Multi-tasking Allows multiple actions to occur ‘simultaneously’ Materials sorter Emergency shutoff StopAllTasks function

Proportional Control Use variables for iterative control of motor speeds Sensors are required for continuous input A target value is set and is used to control the speed of the motor(s)

Error Inside a loop, the ‘distance’ to the target is used to determine the speed of the motor. This distance to target is often referred to as the error

Proportionality Instead of a 1:1 ratio between the error and the motor speed, there is often a proportionality constant used to ‘tune’ the response of the motor.

Tuning the Proportionality constant

Code – traditional motor control

Proportional Lift

Additional Resources