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

Drone instance doesn't ignore messages from other destination sys_id #447

Closed
billbonney opened this issue Sep 25, 2016 · 5 comments
Closed

Comments

@billbonney
Copy link
Collaborator

billbonney commented Sep 25, 2016

This is related to #443 since when this is fixed you get the connection bar/mode control toggling between mavlink heartbeat message from system_id the than the drone instance related one. If you connect a second system, e.g sys_id 254 that could be a connected GCS the system becomes unusable.
These images show two frames as the control bar changes (probably has a different name but I am just getting familiar with the code)
screenshot_1474823867
screenshot_1474823861

@billbonney billbonney changed the title Tower doesn't ignore other system HB, i.e. sys_id now == 1 Tower doesn't ignore other system HB, i.e. sys_id == 1 Sep 25, 2016
billbonney added a commit to billbonney/dronekit-android that referenced this issue Sep 25, 2016
@billbonney billbonney changed the title Tower doesn't ignore other system HB, i.e. sys_id == 1 Drone o=instance doesn't ignore messages from other destination sys_id Sep 25, 2016
@billbonney billbonney changed the title Drone o=instance doesn't ignore messages from other destination sys_id Drone instance doesn't ignore messages from other destination sys_id Sep 25, 2016
billbonney added a commit to billbonney/dronekit-android that referenced this issue Sep 26, 2016
@billbonney
Copy link
Collaborator Author

fixed in version_3.0.2 (but still needs #443 fixed)

@seanmcleod
Copy link

Won't this fix also filter out broadcast messages now?

@billbonney
Copy link
Collaborator Author

billbonney commented Sep 30, 2016

@seanmcleod Which messages are those? I assume you mean sys_id of 0. It's easy to add a condition for that but if there is no responsder in the drone object for a broadcast messages nothing changes.

@seanmcleod
Copy link

@billbonney Yes I'm referring to broadcast messages which use a sys_id of 0. When we first came across issue #443 I looked into the MavLink spec/docs to understand the valid ranges of sys_ids etc. and noticed the broadcast option.

There may be no responders at the moment for broadcast messages but if someone decides to add code for a broadcast message in future they'll be confused when it doesn't make it through.

@billbonney
Copy link
Collaborator Author

billbonney commented Oct 4, 2016

@seanmcleod I have create an issue (enhancement) to add the broadcast responding feature to MAVLink drone object in Tower.

#454

With the changes above, Tower is closer to supporting multiple drones and ones with a sys_id > 127.

Hope that helps 👍

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

No branches or pull requests

2 participants