Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Hot answers tagged

5

To add some context from the chat room conversation: This is part of a larger course that introduces technology in an applied fashion. The segment with the robot is 10 days and the students have not necessarily programmed elsewhere. Empty while loops I would recommend against beginning with any empty loops for your students. All the looping constructs are ...


2

This answer will be a bit different, I hope, and more general. Programming physical robots is inherently different from simple procedural test and command driven programming. It is essentially event driven with events happening outside the program but needing to be handled by it. Some of this sort of thing occurs in, say, Java when you write GUI code that ...


1

On a different note, it is much more effective to use simulated robot environments when first introducing programming to students. The addition of the H/W elements in physical robots (along with more complicated software environments) make the combination more difficult. This would only be exacerbated with a short time line. You could even replicate the ...


1

What you are looking for is "old style" macintosh like event driven programming. It's still there under the covers in Windows, but the high level libraries tend to hide the implementation. Your main event loop: quit = false; while (!quit) { event = getNextEvent(); dispatchEvent (event); } An event is a data structure that contains what, where, and ...


Only top voted, non community-wiki answers of a minimum length are eligible