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

simulator: fix to set system and component IDs as defined in params #11565

Merged
merged 1 commit into from
Mar 3, 2019

Conversation

gamoreno
Copy link
Contributor

@gamoreno gamoreno commented Feb 28, 2019

The simulator had hardcoded component ID and system ID (sysID was 0), ignoring what was set up in the params MAV_SYS_ID and MAV_COMP_ID. This caused an issue with multi-vehicle simulations that that rely on sysID to identify the vehicles.

Signed-off-by: Gabriel Moreno gabrielm@cs.cmu.edu

I'm working on simulating multiple quadcopters in the same simulator, and I realized that even if I start multiple PX4 instances using Tools/sitl_multiple_run.sh, which sets different MAV_SYS_ID for each instance, the messages sent by the simulator module all had sys ID 0. This fixes that, by reading the system and component ID from the params.

The simulator had hardcoded component ID and system ID (sysID was 0), ignoring what was set up in the params MAV_SYS_ID and MAV_COMP_ID. This caused an issue with multi-vehicle simulations that that rely on sysID to identify the vehicles.

Signed-off-by: Gabriel Moreno <gabrielm@cs.cmu.edu>
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

Successfully merging this pull request may close these issues.

2 participants