![]() ![]() So taking your code example and adding a second servo and giving it the same commands, you would not be able to tell that the micro was not doing two things at the same time even though it is. Engineering Notebook & Design Award Engineering notebookNew teams might wonder, what the heck is an engineering notebook, and why do we need one Teams with a few seasons under their belt may want to strive for the Design & Excellence Awards, and take their notebook to the next level. The processor is very fast so many tasks can be done independently of each other such that from a human point of view it will indeed seem that it can do many things at the same time. RobotC is one of many programs that can be used to control a LEGO NXT's, VEX's, and RCX's robots.The program is mainly built up like other programs with a recompiler that checks the program for errors.A special feature is unlimited undos.The latest version is 2.0.1. Well first a microcontroller chip is a single core processor that is always capable of only executing one machine instruction at a time, so the whole concept of doing things “AT THE SAME TIME” is something you will have to come to terms with. ![]() Servo.begin(2) // port 2, this library works without PWM I just want to run two servos at once, and thought I might be able to get two lines of code to execute AT THE SAME TIME. Community content is available under CC-BY-SA unless otherwise noted. She was revealed as a robot in the video 'They have taken control'. This is my current code to run one servo, based on a library I found online. That Poppy (born Poppy) is a robot created by the Illuminati to distract everyone so she can get her attention. The question I was asking was a little more general… it can be worded as “How can I run two lines of code at the same time?” ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |