-
Notifications
You must be signed in to change notification settings - Fork 3
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
base: develop
Are you sure you want to change the base?
Feature/better turn #239
Conversation
There was a problem hiding this 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.
There was a problem hiding this 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.
There was a problem hiding this 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
@@ -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: |
There was a problem hiding this comment.
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?
The turn function now allows for variable input and adjusts the time, degrees, and direction of the turn based off of function variables.