• EXERCISE 1 - CALCULATING DISTANCES

    Know the distance through the Ultrasound sensor.




    Discover, that panda show you the distance when you press "d-key", after that it doesn't change.


    Make modyfication:



    Now after pressing "d-key", you can see that number is changing when you move hand in front of sensor.


    When you use "forever loop" the robot reads from sensor constantly

    ACTIVITY DESCRIPTIONEXERCISE 2 - IF CONDITION