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

MAVlink forwarding #7670

Merged
merged 5 commits into from
Jul 27, 2017
Merged

MAVlink forwarding #7670

merged 5 commits into from
Jul 27, 2017

Conversation

LorenzMeier
Copy link
Member

@sanderux This hopefully fixes the issues you were facing with forwarding. Could you cross-test and fix where required?

@LorenzMeier LorenzMeier added this to the Release v1.7.0 milestone Jul 23, 2017
@sanderux
Copy link
Member

nice, i'll have a look

@sanderux
Copy link
Member

I added changes that allow relaying when it's from the same systemID but a different component. This is required to relay statustext messages and have them show up in the GCS

sanderux
sanderux previously approved these changes Jul 23, 2017
@sanderux
Copy link
Member

Tested, works

@@ -1999,6 +2006,9 @@ Mavlink::task_main(int argc, char *argv[])
configure_stream("NAMED_VALUE_FLOAT", 1.0f);
configure_stream("VFR_HUD", 4.0f);
configure_stream("WIND_COV", 1.0f);
// Image captured runs at full rate independent of
// any limit
configure_stream("CAMERA_IMAGE_CAPTURED", 1.0f);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I need to remove this - this doesn't work without further changes.

//camera trigger is rate limited at the source, do not limit here
configure_stream("CAMERA_TRIGGER", 500.0f);
configure_stream("CAMERA_IMAGE_CAPTURED", 5.0f);
// Camera trigger runs at full rate independent of
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I need to revert this - this doesn't work without further changes.

@@ -2084,8 +2097,12 @@ Mavlink::task_main(int argc, char *argv[])
configure_stream("NAMED_VALUE_FLOAT", 50.0f);
configure_stream("VFR_HUD", 20.0f);
configure_stream("WIND_COV", 10.0f);
configure_stream("CAMERA_TRIGGER", 500.0f);
configure_stream("CAMERA_IMAGE_CAPTURED", 5.0f);
// Camera trigger runs at full rate independent of
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I need to revert this - this doesn't work without further changes.

Copy link
Member Author

@LorenzMeier LorenzMeier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs more changes as I introduced unnecessary churn.

@sanderux
Copy link
Member

@LorenzMeier can you revert your camera changes so we can get this in?

@LorenzMeier
Copy link
Member Author

Good to merge. I also verified memory footprint and made sure UAVCAN setups should still be fine.

@LorenzMeier
Copy link
Member Author

Jenkins test this please.

@sanderux sanderux merged commit dc8caea into master Jul 27, 2017
@sanderux sanderux deleted the pr-mavlink-forwarding branch July 27, 2017 08:16
julianoes added a commit that referenced this pull request Jan 28, 2019
This removes the confusing ugly magic number of 233 introduced as part
of #7670.

Also, the convoluted if is cleaned up using 3 separate bools with some
comments to explain what's going on.

This should not change anything function-wise except that the flight
controller could now potentially also use system ID 233 and not break
forwarding.
julianoes added a commit that referenced this pull request Jan 29, 2019
This removes the confusing ugly magic number of 233 introduced as part
of #7670.

Also, the convoluted if is cleaned up using 3 separate bools with some
comments to explain what's going on.

This should not change anything function-wise except that the flight
controller could now potentially also use system ID 233 and not break
forwarding.
julianoes added a commit that referenced this pull request Jan 31, 2019
This removes the confusing ugly magic number of 233 introduced as part
of #7670.

Also, the convoluted if is cleaned up using 3 separate bools with some
comments to explain what's going on.

This should not change anything function-wise except that the flight
controller could now potentially also use system ID 233 and not break
forwarding.
dagar pushed a commit that referenced this pull request Feb 5, 2019
This removes the confusing ugly magic number of 233 introduced as part
of #7670.

Also, the convoluted if is cleaned up using 3 separate bools with some
comments to explain what's going on.

This should not change anything function-wise except that the flight
controller could now potentially also use system ID 233 and not break
forwarding.
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