OpenRoberta / openroberta-lab

The programming environment »Open Roberta Lab« by Fraunhofer IAIS enables children and adolescents to program robots. A variety of different programming blocks are provided to program motors and sensors of the robot. Open Roberta Lab uses an approach of graphical programming so that beginners can seamlessly start coding. As a cloud-based application, the platform can be used without prior installation of specific software but runs in any popular browser, independent of operating system and device.
Apache License 2.0
125 stars 121 forks source link

NXT sim: motor block moves both wheels #1676

Open AHberta opened 3 months ago

AHberta commented 3 months ago

Describe the bug

To Reproduce Steps to reproduce the behavior:

  1. Import program "issue_motor.xml"
  2. Click on sim to open simulation
  3. Start program
  4. NXT drives only straight

Expected behavior

Device information

Additional context

AyaMoussa commented 2 months ago

After further testing, I've discovered that this is mainly due to motor configuration. Motors B and C have to be configured on the right and left side respectively. In the provided program, motors B and C are configured on the opposite sides. As NXT simulation depends on the standard configuration, changing it will result in different behaviors in the simulation. Ultimately, this all depends on the old configuration that also concerns other robots as EV3, mbot and others, which can adapt to only a few changes to the configuration. I assume this should be more of a generic issue of the old configuration, non specific to the NXT. It can be considered as an extra feature.