Scratch 2—Thymio-II : versions Windows, MacOS, Linux

La variable « distance » et sa version booléenne « je touche » ont de petits menus, qui permet de récupérer les valeurs à l’avant, à l’arrière et au sol. À l’avant tu peut utiliser l’angle à la place des capteurs horizontaux — le signe permet de savoir si l’obstacle est à droite ou à gauche. Pour les capteurs au sol, c’est vrai que je combine les deux, ce qui pose problème parce que pour suivre une trace il est utile de savoir si l’on le perd à droite ou à gauche.
Scratch ne permet pas de récupérer une liste, uniquement une chaîne de caractères, c’est énervant.
Voici une capture d’écran avec l’extension basique, qui marche pour moi ;-(

The « distance » reporter and its boolean counterpart « touching » have little menus, where you can select for front, back, and ground sensors. For the front, you can use the angle instead of the horizontal sensors — the sign lets you know whether the obstacle is to the right or to the left. For the ground sensors, it is true that I combine the two values, which makes it hard to make a line follower since it’s useful to know whether one loses the trace on the right or on the left.
Scratch doesn’t let one retrieve a list, only a string, which is annoying.
Here is a screen shot of the basic extension, which works for me ;-(