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

Pr new vision mav mode #12279

Merged
merged 1 commit into from
Jun 28, 2019
Merged

Pr new vision mav mode #12279

merged 1 commit into from
Jun 28, 2019

Conversation

DanielePettenuzzo
Copy link
Contributor

We've been having many issues on the serial link connecting the Pixhawk 4 to a companion computer. It seems that even if we raise the baudrate to 1.5Mb/s there is not enough bandwidth to use the onboard or extvision modes together with log streaming. Since the onboard mode basically contains any possible mavlink stream, we actually use a small percentage of these for external vision. This pr divides the ext vision mode into two modes, a basic one (extvisionmin) for avoidance and then a normal extvision mode that adds the imu stream that should only be necessary for other applications such as VIO. With this new mavlink mode we were able to reduce the baudrate to 921600 and now we hardly have any drops when running both the mavlink streams and the log streaming on the telem port to the companion.

@DanielePettenuzzo
Copy link
Contributor Author

FYI @jkflying @nicovanduijn

LorenzMeier
LorenzMeier previously approved these changes Jun 15, 2019
@LorenzMeier
Copy link
Member

Nice!

configure_stream_local("LOCAL_POSITION_NED", 30.0f);
configure_stream_local("NAMED_VALUE_FLOAT", 1.0f);
configure_stream_local("NAV_CONTROLLER_OUTPUT", 1.5f);
configure_stream_local("ODOMETRY", 3.0f);
Copy link
Member

Choose a reason for hiding this comment

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

3hz ends up being short for systems dependent of the covariances given by this msg.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok so what do you think is a reasonable value? And should this be in the extended mode or in the minimal ext vision mode?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I set this to 30Hz as in the onboard mode

dagar
dagar previously approved these changes Jun 28, 2019
increase max value for SYS_AUTOSTART parameter from 99999 to 9999999

fix MAVLINK_MODE_EXTVISIONMIN mode and add fallthrough comment

Signed-off-by: DanielePettenuzzo <[email protected]>
@DanielePettenuzzo
Copy link
Contributor Author

@dagar squashed and rebased

@dagar
Copy link
Member

dagar commented Jun 28, 2019

@dagar squashed and rebased

Much appreciated!

@dagar dagar merged commit 55b5e75 into master Jun 28, 2019
@dagar dagar deleted the pr-new-vision-mav-mode branch June 28, 2019 14:44
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.

4 participants