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

"Going for waypoint zero" at end of auto mission #1244

Closed
squilter opened this issue Oct 31, 2014 · 6 comments
Closed

"Going for waypoint zero" at end of auto mission #1244

squilter opened this issue Oct 31, 2014 · 6 comments
Labels
Milestone

Comments

@squilter
Copy link
Member

Happens every time. Here's a video of it happening.

Does WP 0 have some hidden meaning (like "mission complete").

@squilter squilter added the bug label Oct 31, 2014
@ghost
Copy link

ghost commented Oct 31, 2014

I sometimes also happens when arming

@squilter
Copy link
Member Author

@ThorstenDP Hasn't happened to me when arming. Do you mean arming in auto or arming in any mode?

@ghost
Copy link

ghost commented Oct 31, 2014

@squilter to be honest I am not sure in which mode. But normally I takeoff in Stabilize. And it happened a few time at the very beginning. I will keep an eye on it. It never caused any troubles so I forgot to report. But when I saw your Issue I remembered. Should it happen again I'll let you know.

@arthurbenemann
Copy link
Member

Here is the related code from ArduPilot:

static void NOINLINE send_current_waypoint(mavlink_channel_t chan)
{
    mavlink_msg_mission_current_send(chan, mission.get_current_nav_index());
}
    /// get_current_nav_index - returns the current "navigation" command index
    /// Note that this will return 0 if there is no command. This is
    /// used in MAVLink reporting of the mission command
    uint16_t get_current_nav_index() const { 
        return _nav_cmd.index==AP_MISSION_CMD_INDEX_NONE?0:_nav_cmd.index; }

@ghost
Copy link

ghost commented Nov 14, 2014

I notice this also. Always at the end of a normal (not auto missing). Perhaps it happens when I switch my TX off while my Quad is stil powered. Probably the mode off the APM changes by switching off the TX and lowering the PWM of the modechange channel.

@phmagic phmagic added this to the v 3.1 milestone Jan 6, 2015
@m4gr3d
Copy link
Member

m4gr3d commented May 26, 2015

Fixed by PR #1489

@m4gr3d m4gr3d closed this as completed May 26, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants