PROGRAMMING FUNCTIONS
Task: WRITE A FUNCTION
- Write a programming functions which includes the certain programming steps in order to move the robot in specific direction. Some examples are presented in [@fig:functions_ardublockly].
{#fig:functions_ardublockly}
- Write also other functions like:
robotForward()
robotStop()
robotLeft()
robotRight()
robotBackward()
- Write longer program to move the robot allover the classroom.
Questions:
- What would happened if several robots would have the same program?
- Can you change the program in a way that robot would repeat the program?
- What happens if the mobile robot run into an obstacle?