Skip to content

Lap Race Condition聽#342

Description

@AskewParity

馃悰 Bug

To Reproduce

Steps to reproduce the behavior:

To do this synthetically (SITl), we will have to change the code.

  1. After the first completed waypoint mission, don't upload a new waypoint mission.
  2. The code will transition to fly_search, which is incorrect as it only finished one lap.

Expected behavior

The correct behavior is that the code should be in fly_waypoints until the number of laps finishes

Additional context

There is a race condition between mav upload and the tick itself. If the tick reloads (on the order of 100 ms) before the mav upload completes, and the mav status is still marked as complete, then another lap will be subtracted.

Activity

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions