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

Copter: Add an element of NAV_CONTROLLER_OUTPUT to ZIGZAG mode #17456

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 3 additions & 0 deletions ArduCopter/mode.h
Expand Up @@ -1570,6 +1570,9 @@ class ModeZigZag : public Mode {

const char *name() const override { return "ZIGZAG"; }
const char *name4() const override { return "ZIGZ"; }
uint32_t wp_distance() const override { return wp_nav->get_wp_distance_to_destination(); }
int32_t wp_bearing() const override { return wp_nav->get_wp_bearing_to_destination(); }
float crosstrack_error() const override { return wp_nav->crosstrack_error(); }
Comment on lines +1573 to +1575
Copy link
Contributor

Choose a reason for hiding this comment

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

We should send back zero for all of these while in the pilot-controlled aspect of zigzag.


private:

Expand Down