Thursday, January 15, 2009

basic Interactive C codes. 1/15/09

This is the first code i wrote in interactive C.

void main()

{
fd(1);
bk(2);
printf("hey");
sleep(3.0);
bk(1);
fd(2);
sleep(5.0);
fd(1);
bk(2);
printf("bye");
off(1);

}


This is the code i wrote to put on the Roomba.

`void main()
{
beep();
fd(1);
fd(2);
sleep(1.0);
fd(1);
bk(2);
sleep(0.5);
beep();
}

semester showcase 1/15/09

What did you learn?
some basics in programing Interactive C.

What did you set out to do?
at first i wanted to program using python, then i switched to interactive c. Then i was going to write some codes and put them on blocks and run the codes i made. I decided i wanted to write codes for the roomba.

What was your problem and goal?
my problem was i count get the code i wrote onto the roomba.
my goal was to run codes i wrote on the roomba.

What did you actually do?
i ended up writing some codes but i dint succeed in my goal i had a set back, i coulnt get my code onto the roomba, because firmware wouldn't download. so i tried a bunch of different things to get firmware to download so i could get my program onto the roomba but i never figured it out.

what would you do differently?
i would try harder to figure out a solution to my problem, or change projects after i realized i count figure out the problem.

What would you do next?
next, i would hopefully have a break through and figure out my problem so i could write more codes and figure out more to do with the roomba.