Skip to content

Vehicle.commands.next returns last waypoint not next waypoint #419

Closed

Description

@hamishwillee

The reported vehicle.commands.next value is numerically the waypoint that was just left rather than the waypoint that you're heading towards. This is incorrect

You can see the behaviour by observing mission_basic.py example (note we're reporting next waypoint as 0 (incorrect), then the system reports we've reached waypoint 1 (correctly)

Distance to waypoint (0): None
Distance to waypoint (0): None
Distance to waypoint (0): None
>>> Reached Command #1
Distance to waypoint (1): 7.44343078803
Distance to waypoint (1): 3.82302758257

As an aside, this causes the example to misreport the distance to the next waypoint (and rather report the distance from the last waypoint)

Activity

  1. tcr3dr commented on Nov 7, 2015

    @tcr3dr
    Contributor

    Fixed by #423.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions