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

[WIP] Telemetry status: report type and ID of remote system #9473

Closed
wants to merge 10 commits into from

Conversation

jlecoeur
Copy link
Contributor

@jlecoeur jlecoeur commented May 16, 2018

This PR adds infos about remote MAVLink systems into the topic telemetry_status:

  • the remote system type (enum MAV_TYPE). This allows to know if a mavlink instance is connected to a ground control station, needed by [WIP] Mavlink: rotate attitude for tailsitter in FW mode #9440
  • the remote system ID and component ID are set from heartbeat messages sent by the remote system, they were previously set from radio status message inserted by the radio module.
  • mavlink status prints these infos, useful to identify which instance is connected to what

Please review carefully the changes in Commander, I do not want to break the detection of loss of GCS telemetry.

@LorenzMeier
Copy link
Member

Quick question: If the link is connected to multiple external/remote systems, what happens? Do we maybe need to report 0 then for ALL / broadcast? I want to avoid having the remote ID toggling randomly.

@jlecoeur
Copy link
Contributor Author

Good point. We can detect if the ID changes more than once (ex 0 - > 1 - > 255) and report 0.

@lamping7
Copy link
Member

lamping7 commented May 17, 2018

This is causing a failsafe activation in CI leading to a mode switch failure. Failsafe repeatedly cycles between enabled and disabled. Unfortunately, I don't have more info than that.

ex:

[ INFO] [1526507826.169861039, 28.210000000]: FCU: Failsafe mode disabled
[ INFO] [1526507827.115278143, 29.154000000]: FCU: Failsafe mode enabled
[ INFO] [1526507827.165489924, 29.204000000]: FCU: Failsafe mode disabled
[ INFO] [1526507828.110843369, 30.150000000]: FCU: Failsafe mode enabled
[ INFO] [1526507828.161152307, 30.200000000]: FCU: Failsafe mode disabled
[ INFO] [1526507829.110614177, 31.148000000]: FCU: Failsafe mode enabled
[ INFO] [1526507829.160875006, 31.198000000]: FCU: Failsafe mode disabled
[ INFO] [1526507830.117813725, 32.154000000]: FCU: Failsafe mode enabled
[ INFO] [1526507830.168128978, 32.206000000]: FCU: Failsafe mode disabled

#9440 does the same thing.

@LorenzMeier
Copy link
Member

@jlecoeur Could you please look into the CI failure? This PR is breaking something. Thanks!

@jlecoeur jlecoeur changed the title Telemetry status: report type and ID of remote system [WIP] Telemetry status: report type and ID of remote system May 22, 2018
@jlecoeur jlecoeur force-pushed the pr-telemetry_remote_type branch from cd38ac1 to 4a41e5b Compare May 22, 2018 16:50
@dagar
Copy link
Member

dagar commented Nov 28, 2018

Revisiting this idea - #10933

@stale
Copy link

stale bot commented Feb 26, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale
Copy link

stale bot commented Mar 12, 2019

Closing as stale.

@stale stale bot closed this Mar 12, 2019
@BazookaJoe1900 BazookaJoe1900 deleted the pr-telemetry_remote_type branch June 13, 2020 18:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants