-
Notifications
You must be signed in to change notification settings - Fork 113
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
Multiple SITLs in a Computer #126
Comments
Hi, You could use the "I" option to use 5770, 5780 and so on... It works in multiples of 10, so I don't think you would be able to use 5761 in this way.
From the dronekit-sitl command help:
|
yes, the instance number works for dronekit-silt, and then you can add a mavproxy with the relevant ports and even change the sysmavid in each simulated vehicle, but they are not unique vehicles, so the ground station "jumps" from one device to another in a fast way... is there a way to avoid this without using the peterbaker multisitl solution? |
@alduxvm i have the same question with you, do you find any solution? |
Hi, I haven't found a solution... changing the ID of mavlink requieres reboot, I had one idea of compiling an .hex with different ID and then use that one with dronekit silt, but I did not reached to far. sorry |
Well the worst but working solution for that is multiple virtual machines in one host computer. |
On Wed, 30 May 2018, 洪臣 wrote:
@alduxvm i have the same question with you, do you find any solution?
|
system id can be changed in mavproxy |
I solved this issue by compiling binaries with SYSID set to different numbers. The zip file below contains binaries with SYSID from 1-3 it also contains the default eeprom and pram files. You need to run the below commands in the same folder to run multiple instances of SITL with different SYSIDs.
(Remove "&" at the end for non-Linux users and run each command in a new cmd prompt(windows) I don't know the mac way sorry you can also create a bash file and run them together) The above commands will generate three different quads at 5760, 5770 and 5780 you can directly connect them to your ground control station(I used Q ground control) or use MAVproxy for multiple outputs like below
(don't make a bash file for these just run them in separate terminals. BTW if you are able to make a bash that can run all these at the same time please do let me know) Just FYI: you will need to load the param from default.parm file in MAVproxy
default.parm comes in the firmware folder also I disabled the battery while compiling the binaries because I was too annoyed by the low battery of my simulated drone. |
This seems to result in 'no link' issue. command |
Any updates on this |
you can use like this. copy this to text file and save as .bat . after that you can use easy start cmd /k dronekit-sitl copter --home=39.945102,32.593052,0,180 |
Apologies if this is old news: but having fought with this same issue for a while, I was delighted to find a "--sysid" option in SITL. It is documented but easy to miss in the usage list. So, the following (in four different terminals) gives me a multiplexed MAVLINK stream on UDP port 14553, and I can then use QGroundControl in multiple UAV mode but with just a single UDP connection. Each SITL has an accompanying mavproxy to forward its MAVLINK to the UDP port.
|
Hi.
I want to run multiple SITL copters in one computer.
How can i change the 5760 TCP port when initializing the SITL?
For example:
Drone1 : 5760
Drone2: 5761 and so on...
Regards...
The text was updated successfully, but these errors were encountered: