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

Feature/better turn #239

Open
wants to merge 5 commits into
base: develop
Choose a base branch
from
Open

Feature/better turn #239

wants to merge 5 commits into from

Conversation

noahklein00
Copy link

The turn function now allows for variable input and adjusts the time, degrees, and direction of the turn based off of function variables.

@noahklein00 noahklein00 linked an issue Mar 17, 2021 that may be closed by this pull request
Copy link
Contributor

@ewad3 ewad3 left a comment

Choose a reason for hiding this comment

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

Other than small changes needed to be made looks good.

flight/flight.py Outdated Show resolved Hide resolved
run.py Outdated Show resolved Hide resolved
Copy link
Member

@pieperm pieperm left a comment

Choose a reason for hiding this comment

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

Lots of comments that do a great job explaining what's happening. Could use changes with type annotations on a few variables.

flight/utils/movement_controller.py Outdated Show resolved Hide resolved
flight/utils/movement_controller.py Outdated Show resolved Hide resolved
flight/utils/movement_controller.py Outdated Show resolved Hide resolved
flight/utils/movement_controller.py Outdated Show resolved Hide resolved
Copy link
Member

@pieperm pieperm left a comment

Choose a reason for hiding this comment

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

A couple more things

flight/utils/movement_controller.py Outdated Show resolved Hide resolved
@@ -95,25 +96,52 @@ async def move_to(self, drone: System, pylon: LatLon) -> bool:
return True
count += 1

async def turn(self, drone: System) -> bool:
async def turn(self, drone: System, degrees_turned = 180: int, left_turn = True: bool, time = 3.5: float) -> bool:
Copy link
Member

Choose a reason for hiding this comment

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

Another possible issue I noticed is that adding these arguments is not reflected when the function is called. That is, in states/early_laps.py, the call to mover.turn() is only passed a drone. Are we planning on using the default arguments for the pylon laps?

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.

Equation to make turns based on speed or a better way to turn
3 participants