Presentation is loading. Please wait.

Presentation is loading. Please wait.

Technical Writing for Robotic Coding!.  du/products/teaching_robotc_cort ex/fundamentals/introtoprogramm ing/thinking/videos/fundamentals.

Similar presentations


Presentation on theme: "Technical Writing for Robotic Coding!.  du/products/teaching_robotc_cort ex/fundamentals/introtoprogramm ing/thinking/videos/fundamentals."— Presentation transcript:

1 Technical Writing for Robotic Coding!

2  http://www.education.rec.ri.cmu.e du/products/teaching_robotc_cort ex/fundamentals/introtoprogramm ing/thinking/videos/fundamentals 1.html http://www.education.rec.ri.cmu.e du/products/teaching_robotc_cort ex/fundamentals/introtoprogramm ing/thinking/videos/fundamentals 1.html

3 LEGO NXT 2.0 Code VEX Robot C Programing

4 What does this mean? Pseudocoding requires you to know how to read and write code so you can explain what a code is telling the robot to do. Purpose of Pseudocode The purpose is to create a reference that will allow you to quickly fix any issues or alter lines of code. These quick references are referred to as Commands.

5  http://www.education.rec.ri.cmu.e du/products/teaching_robotc_cort ex/fundamentals/introtoprogramm ing/thinking/videos/fundamentals 2.html http://www.education.rec.ri.cmu.e du/products/teaching_robotc_cort ex/fundamentals/introtoprogramm ing/thinking/videos/fundamentals 2.html

6 Reading and Writing Code turnLEDOn(GreenLED); -Turn the Green LED light on. turnLEDOff(GreenLED); -Turn the Green LED light off. startMotor(MotorRight,63); -Start Right motor at Half Speed moving forward. *A wait command must follow this command* startMotor(MotorLeft,-63); -Start Left motor at Half Speed moving in reverse. *A wait command must follow this command* wait(2); -Run the previous code for 2 Seconds. stopMotor(MotorRight); -Stop the Right Motor. stopMotor(MotorLeft); -Stop the Left Motor. Commands

7 Reading and Writing Code Continued untilTouch(BumpSwitch); -Begin, run or end program when Bump Switch is activated. untilTouch(LimitSwitch); -Begin, run or end program until Limit Switch is activated. startMotor(Claw,50/-50); -Open or close the Claw. stopMotor(Claw); -Stop claw.*A wait command must follow this command* untilLight(2500, LineFollower); -Run program or auto-correct program when sensor reads specific light reading.

8 Your Turn! Write a Pseudocode for how you would make your favorite sandwich on the back of your paper!


Download ppt "Technical Writing for Robotic Coding!.  du/products/teaching_robotc_cort ex/fundamentals/introtoprogramm ing/thinking/videos/fundamentals."

Similar presentations


Ads by Google