You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
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
The text was updated successfully, but these errors were encountered: