Défi
4 Move according to a colour
vendredi 21 mai 2021, par
Toutes les versions de cet article : [English] [français]
Compétences travaillées
C4. Notion de variable informatique
C4. Notion de déclenchement d’une action par un évènement
Projets / Challenges
Roboty’c Saison 4
RobotYc Saison 5 - édition 2020
Roboty’C
Positioning the container on a storage area according to its colour involves adapting the robot’s movement according to the colour read.
In this activity, the program must :
- Move the robot towards a coloured wall
- Stop the robot when it hits the wall
- Read the colour of the wall
- If the colour is "blue", the robot moves back 20cm
- If the colour is "red", the robot moves back 40cm
- Make the robot stop for 5s at the right distance from the wall and then repeat the operation