Steering right

Since we just completed the code for the steerLeft MyBlock, writing the code for the MyBlock that will steer the Falcon to the right will be easy because the programming is largely the same. You can make the steerRight MyBlock by following the same steps you used to make the steerLeft MyBlock. The only difference is that where the motor powers and threshold values were positive, they must now become negative and all of the inequality signs must be flipped:

Do not forget to add a medium motor block to shut motor  A off in the false case of the switch:

Finally, save the MyBlock as steerRight using the MyBlock builder.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.188.44.223