Skip to content

Feature/better turn#239

Open
noahklein00 wants to merge 5 commits into
developfrom
feature/betterTurn
Open

Feature/better turn#239
noahklein00 wants to merge 5 commits into
developfrom
feature/betterTurn

Conversation

@noahklein00
Copy link
Copy Markdown

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 requested review from ewad3 and pieperm March 17, 2021 01:31
@noahklein00 noahklein00 linked an issue Mar 17, 2021 that may be closed by this pull request
Copy link
Copy Markdown
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.

Comment thread flight/flight.py
Comment thread run.py Outdated
Copy link
Copy Markdown
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.

Comment thread flight/utils/movement_controller.py Outdated
Comment thread flight/utils/movement_controller.py Outdated
Comment thread flight/utils/movement_controller.py Outdated
Comment thread flight/utils/movement_controller.py Outdated
Copy link
Copy Markdown
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

Comment thread flight/utils/movement_controller.py Outdated
Comment thread flight/utils/movement_controller.py Outdated
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
Copy Markdown
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