Sunday, November 22, 2015

Sunday, 22 November 2015

1) I had fun running and programming with Hugo.
2) I learned something new about the html code in my blog. <br> will cause a break. I updated September 29th with an embedded video rather than a link. (Although, I left the link.)

3) I coded the computer to get the robot to complete a series of steps.
/* Code generated by Michelle Townsley */
#include <linkbot.h>
CLinkbotI robot;
double radius = 1.75;
double trackwidth = 3.69;
robot.setLEDColor("blue");
robot.turnRight(90, radius, trackwidth);
robot.driveDistance(7.38, radius);
robot.turnLeft(90, radius, trackwidth);
robot.delaySeconds(2);
robot.turnLeft(90, radius, trackwidth);
robot.driveDistance(7.38, radius);
robot.turnRight(90, radius, trackwidth);
robot.delaySeconds(2);
robot.driveDistance(-7.38, radius);
robot.delaySeconds(2);
robot.setLEDColor("red");
robot.blinkLED(0.1, 10);
robot.driveDistance(7.38, radius);
robot.delaySeconds(2);
robot.turnLeft(90, radius, trackwidth);
robot.setLEDColor("blue");
robot.blinkLED(0.1, 10);


No comments:

Post a Comment