110 likes | 243 Vues
Robotics. Switch block variant. Record/Play. Timer. Present building project proposals Homework: Postings. Plan projects. Switch block. IF/ELSE Case statement Number Text Can set the default condition. Note: tabs. Current one is third. Switch block. Value of Type Number.
E N D
Robotics Switch block variant. Record/Play. Timer. Present building project proposals Homework: Postings. Plan projects.
Switch block • IF/ELSE • Case statement • Number • Text • Can set the default condition
Note: tabs.Current one is third Switch block Value of TypeNumber * Button marks default Tabbed, Not flat view
Applications • Decide among 3 or more conditions rather than using nested logical tests • ?
Timer • 3 timers are available • Must be reset. • Output can be • Logical result of comparison • The unit for the trigger is seconds! • Elapsed time since reset • The unit for reading is milliseconds
Convert to text & combine to say Time is Read out the time Reset timer 2 Display & then wait
Original blocks vs minis • Timer example: one motor move and one display
Record/Play • Can record motion of the motors • Stores information on the NXT for playback
Note • This is teach/playback: useful when action is NOT governed by sensors • Not easy to move robot motors ‘by hand’ • Motors difficult to synchronize so playback is jiggly.. • May be more useful for jointed motion? • See on-line discussion
Building projects • Presentations
Homework • [continue to] plan building projects • Postings • News articles • Comments on library presentations • Comments on building projects