Question: i. Using the following simulator setup, write a program that will cause the robot to drive forward a short way and then turn through
i. Using the following simulator setup, write a program that will cause the robot to drive forward a short way and then turn through approximately 360 degrees, pivoting around one wheel, as shown in Figure 1. %%sim_magic_preloaded Cp -x 100 y 700 -a -90 Your answer should include a screenshot and a copy of your commented program. (7 marks) O Figure 1 Example of desired output for part (c)(i) ii. Describe two ways in which you might modify your program so that the turning circle traced by the pen would appear on the other side of the forward motion line (that is, above, rather than below the line).
Step by Step Solution
3.41 Rating (160 Votes )
There are 3 Steps involved in it
I can give you a commented program that you can use in the simulator setup you provided Set up the robots initial position and orientation STARTX 100 ... View full answer
Get step-by-step solutions from verified subject matter experts
