[SOLVED] Line-following error with mBot 2


#1

Hello,

I am using the mBot2 with the program mblock5.4.3

When I load the following program on the mbot
grafik

and press the A button, I get the following error message on the mbot:

Traceback (most recent call last):
file "Linienfolge", line 12 in is_btn_press

What can I do?

Horst Günther


#2

Is there any error info? @phg1 Try changing the variable name from status to say custom_status_var. Also, you might add a clear screen block above the variable one, and a wait 0.1 second or some such block after the show label one. Otherwise, I’m not very sure how to help you due to limited info. Thanks for anything else you can provide!


#3

Hello,

@Best_Codes: Thank you very much for the tips. However, they have all been unsuccessful. I have also uninstalled and reinstalled Makeblock: That didn’t change anything either.

What irritates me: In the device extensions it says Quad RGB Sensor (beta).
grafik
Maybe that is the problem.


#4

The error message appears on the Cyberpi screen.

Could someone please enter my mini-program and then tell me whether the error message also appears after pressing button A?


#5

I have carried out an update in the Cyberpi. This has solved the problem.


#6

@phg1 Since the issue is solved, I should now be able to close this topic. Thanks for contributing!


#7

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.