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

Added lap timing to task 1 code #59

Merged
merged 2 commits into from
May 6, 2024
Merged

Conversation

mgupta27
Copy link
Collaborator

@mgupta27 mgupta27 commented May 3, 2024

Added lap timing to task 1 code

Key Changes

  • Added logic to time how long the drone takes to fly one lap
  • When the lap time is calculated, the drone calculates if it has time to run another lap
  • Added logging for when the drone starts a lap, and when the drone finishes a lap

Testing

  • I tested it on the simulator
    • Tested the case where the drone can't fly another lap and forces RTL
    • Tested the case where the drone flies the maximum number of laps

Copy link
Member

@Trotyl15 Trotyl15 left a comment

Choose a reason for hiding this comment

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

LGTM!

@mgupta27 mgupta27 merged commit be4c4f1 into main May 6, 2024
1 check passed
@mgupta27 mgupta27 deleted the mihir.add-lap-timing-for-task-1 branch May 6, 2024 14:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants