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

Plane: Send a quadplane version of NAV_CONTROLLER_OUTPUT #9012

Merged

Conversation

WickedShell
Copy link
Contributor

Send a quadplane appropriate version of NAV_CONTROLLER_OUTPUT to the GCS. Resolves #9002

@WickedShell
Copy link
Contributor Author

#9004 frees up the required space for the feature on px4-v2.

targets.z * 1.0e-2f,
wp_nav_valid ? quadplane.wp_nav->get_wp_bearing_to_destination() : 0,
wp_nav_valid ? MIN(quadplane.wp_nav->get_wp_distance_to_destination(), UINT16_MAX) : 0,
plane.control_mode != QSTABILIZE ? quadplane.pos_control->get_alt_error() * 1.0e-2f : 0,
Copy link
Contributor

Choose a reason for hiding this comment

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

Add prens.

nav_controller->crosstrack_error());
if (quadplane.in_vtol_mode()) {
const Vector3f &targets = quadplane.attitude_control->get_att_target_euler_cd();
bool wp_nav_valid = plane.control_mode == QLOITER || plane.control_mode == QLAND || plane.control_mode == QRTL;
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe add a method?

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 wasn't confident enough if this was a dirty hack or generally sufficient to make it a method...

@WickedShell WickedShell force-pushed the wickedshell/quadplane-nav-controller branch from 01ad5c7 to add9d83 Compare August 3, 2018 03:47
@tridge tridge merged commit 3d923d0 into ArduPilot:master Aug 6, 2018
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.

None yet

4 participants