Technical Writing for Robotic Coding!
du/products/teaching_robotc_cort ex/fundamentals/introtoprogramm ing/thinking/videos/fundamentals 1.html du/products/teaching_robotc_cort ex/fundamentals/introtoprogramm ing/thinking/videos/fundamentals 1.html
LEGO NXT 2.0 Code VEX Robot C Programing
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.
du/products/teaching_robotc_cort ex/fundamentals/introtoprogramm ing/thinking/videos/fundamentals 2.html du/products/teaching_robotc_cort ex/fundamentals/introtoprogramm ing/thinking/videos/fundamentals 2.html
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
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.
Your Turn! Write a Pseudocode for how you would make your favorite sandwich on the back of your paper!