130 likes | 227 Views
NXT-G Online Professional Development Classes will begin at 3:30pm EDT. Welcome. This is Week 7 All assignments due at beginning of next class (wk.8) Homework review. Data Types and Display. Lab: NVT2 Datatypes and Display
E N D
NXT-GOnline Professional DevelopmentClasses will begin at 3:30pm EDT
Welcome • This is Week 7 • All assignments due at beginning of next class (wk.8) • Homework review
Data Types and Display • Lab: NVT2 Datatypes and Display • http://www.education.rec.ri.cmu.edu/products/nxt_video_trainer2/advanced/datatypes/datatypes.html • FIRST PAGE WILL BE MISSING • START AT 3 • Press the “checkmark” button when you are done with Step 5 • Continue toward end after pressing checkmark
Data Types and Display • What happened? • Bad wires • Dotted grey • Click and press delete • Caused by Data Type errors
Data Types and Display • Data Types • Numbers • Text • Logic • Aren’t Numbers Text? • Solutions • Make it display a Number • Change the number into Text
Data Types and Display • Continue activity • Do up through 7 if you haven’t (real-time updates) • You can skip 8 and 9 for now • Then do the Continue Challenge • Extension: Noise-Throttle meter • Extend your Throttle program to indicate how much noise the robot is making for a given throttle setting • Display BOTH values
Variables • Lab: NVT2 Storing Values • http://www.education.rec.ri.cmu.edu/products/nxt_video_trainer2/advanced/variables/variables.html • FIRST PAGE WILL BE MISSING • START AT 3 • Press the “checkmark” button when you are done with Step 5 • Continue toward end after pressing checkmark
Variables • The suitcase motif • “Write” down a value on a piece of paper and store it inside a suitcase (Stuff happens!) • “Read” the value later • Variables hold values for later use
More Variables • Need more variables? • NXT-G has one of each Data Type by default • Edit > Define Variables • Select Create • Give the variable a name • Give the variable a Data Type
Line Locator Challenge • Lab: NVT2 Storing Values Continue • http://www.education.rec.ri.cmu.edu/products/nxt_video_trainer2/advanced/variables/variables.html • Continue Activity • Press the “checkmark” button when you are done with the challenge
Homework • This is Week 7 • All assignments due at beginning of next class (wk.8) • This week’s assignment: • Finish up anything you’re missing • Poster Assignment, Part 2 (short) • “Elevator” summary of your poster topic: 20 seconds max • Submit audio recording • You have a microphone! • Windows and Mac both have a free sound recorder app • Finish the Line Locator Challenge
Closing Thoughts • Class activity: Display • Programming concept: Data Types • NXT-G concept: Number to Text Block • Class activity: Cave Gatherer • Programming concept: Variables • Class activity: Line Locator