![]() ![]() You can control the strength of the turn, also known as the turn radius, by adjusting the strength of these values. Try to imagine how you might turn the robot, then match the words in this quiz to complete the idea correctly. Turning the virtual robot is… not so straightforward. Turning is easy if you’re driving a car– you just turn the wheel and the wheels (connected by the steering axle and some gears) turn to point in the direction you want the car to go. Try it yourself in the app, then return here to see the way we did it. Now that you understand how to stack code blocks to make the virtual robot move, you can make it go forward and backwards. Most of the time, though, we want our robots to behave a bit more deliberately, so we need to introduce some more commands so our robot will move forward AND backward AND forward again (as many times for as far a distance as we want). Ok so we’ve successfully set the power of motors, now what? Well, if we simply wanted a robot that rams things at high speed, we are done. Remember: in most cases you don’t have to use whole numbers only numbers can be negative, decimals, or both! What now? The only way you can figure out what the power should be is to experiment. In this case, the “power” value we “set” for each wheel is determined by the VRS App. Sometimes you have the opportunity to define what that value means before setting it, but often you have to work within the constraints of the existing software. Often in programming you need to set a value. Aha! We hope you see that exploring the blocks in your toolbox often reveals a better way to accomplish a task.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |