hasxy.blogg.se

Robotc timer
Robotc timer







robotc timer

The teacher is also watching a clock, if a student speaks for too long then the teacher will interrupt them and give someone else a turn. Some students may want to speak often and keep raising their hands, others may be sleepy and not participate much at all. If several students have their hands raised, the teacher will choose each one in turn so everyone can be heard. If a student wants to speak then they have to raise their hand and wait for the teacher to give them permission. RobotC’s faux-multitasking is handled by the “task scheduler” he offers a wonderful analogy of how this works.Ĭonsider a group of students sitting around a table having a discussion with their teacher. I include here text from the aweseome jpearman about how RobotC’s tasks work, because I couldn’t possibly say it better myself.

robotc timer

Technically, RobotC can’t either, but it has the ability to make it seem like it’s multitasking using things called … wait for it … tasks. In eas圜, the best you can do with this limitation is some very well-crafted and efficient functions-called one after the other, each doing its thing and returning to the main loop-but you just cannot make it do 2 things at once. The VEX cortex (as it stands now, in the 2017-and-before universe) cannot multitask it has no capacity for doing so. For those who are considering switching from eas圜 to RobotC (or if you’re like us, and you have switched but are still in the learning phase), I thought I’d write about an item in RobotC that does not exist in eas圜: tasks.









Robotc timer