NenadZG / mBot-simulation

mBot simulation in V-REP
GNU General Public License v3.0
22 stars 10 forks source link

How to add additional ultrasonic sensor to mblock? #2

Open mjm522 opened 5 years ago

mjm522 commented 5 years ago

Hi Nenad Stajić,

First of thanks a lot for this repo. It helped me a lot to get started with VREP and mBlock. For my work, I need to add two more ultrasonic sensor on to the mBot. I added it by editing the mBot Script as well as added new proximity sensor to the robot. Within the VRep everything works fine. I am able to independently plot the graphs of all three sensors and visualise them.

The issue happens when I want to read the values of all three sensors in the mBlock. Previously it had only one sensor and we were able to read it on Port3. Now when I have added more sensors, how to assign the ports to the newly defined sensors? How will we add an extra block in the "Robots" of the mBlock?

Hope you will be able to provide some helpful suggestions to the same.

Best,

Michael Mathew

castgu2021 commented 2 years ago

how did you solve the problem