Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mbot: Unintended Execution of Commands Despite 'If' Conditions in Robot Program #1713

Open
Lexa2000 opened this issue Dec 6, 2024 · 2 comments

Comments

@Lexa2000
Copy link

Lexa2000 commented Dec 6, 2024

If you run the Mbot programme in the Sim that uses the infrared sensor, EVERY command will be executed (regardless of whether the ‘if’ condition is met).

When testing the program in debug mode and placing the robot on the white area, an unexpected behavior occurs. The robot continuously turns, even though both sensors are outputting ‘False’.

To isolate the issue, I tested a simpler program, and the same unexpected behavior occurs. The robot’s actions do not match the program’s instructions or expectations.

Expected Behavior:
The robot should not turn when both sensors output ‘False’.

Actual Behavior:
The robot keeps turning, which contradicts the program’s expectations and outputs.

Tested on a Windows notebook, fire fox version 128.5.1

@Lexa2000 Lexa2000 changed the title Unintended Execution of Commands Despite 'If' Conditions in Robot Program Mbot: Unintended Execution of Commands Despite 'If' Conditions in Robot Program Dec 6, 2024
@Lexa2000
Copy link
Author

Lexa2000 commented Dec 6, 2024

Enregistrement.6.mp4

Screenshot 2024-12-06 at 12-49-37 Open Roberta Lab

@Lexa2000
Copy link
Author

Lexa2000 commented Dec 6, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant